diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-05-15 07:33:28 +0800 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-05-20 00:43:07 -0600 |
commit | 708a7e438806c02add92a585b0a6b4b2ae50159b (patch) | |
tree | 15efa6450f988c081a1df5b41db7a3aa098d03fa /drivers/spi | |
parent | 8901e1b98e1dad75c4567d03dd00a59bd6c450e8 (diff) | |
download | blackbird-op-linux-708a7e438806c02add92a585b0a6b4b2ae50159b.tar.gz blackbird-op-linux-708a7e438806c02add92a585b0a6b4b2ae50159b.zip |
spi/spi_nuc900: Use spi_bitbang_stop instead of spi_unregister_master in nuc900_spi_remove
Calling spi_bitbang_stop() will also destroy bitbang->workqueue,
which is created by calling spi_bitbang_start() in nuc900_spi_probe().
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi_nuc900.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_nuc900.c b/drivers/spi/spi_nuc900.c index d5be18b3078c..3cd15f690f16 100644 --- a/drivers/spi/spi_nuc900.c +++ b/drivers/spi/spi_nuc900.c @@ -463,7 +463,7 @@ static int __devexit nuc900_spi_remove(struct platform_device *dev) platform_set_drvdata(dev, NULL); - spi_unregister_master(hw->master); + spi_bitbang_stop(&hw->bitbang); clk_disable(hw->clk); clk_put(hw->clk); |