diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-05-14 19:33:28 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-05-20 02:43:07 -0400 |
commit | 708a7e438806c02add92a585b0a6b4b2ae50159b (patch) | |
tree | 15efa6450f988c081a1df5b41db7a3aa098d03fa /drivers/spi | |
parent | 8901e1b98e1dad75c4567d03dd00a59bd6c450e8 (diff) |
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) | |||
463 | 463 | ||
464 | platform_set_drvdata(dev, NULL); | 464 | platform_set_drvdata(dev, NULL); |
465 | 465 | ||
466 | spi_unregister_master(hw->master); | 466 | spi_bitbang_stop(&hw->bitbang); |
467 | 467 | ||
468 | clk_disable(hw->clk); | 468 | clk_disable(hw->clk); |
469 | clk_put(hw->clk); | 469 | clk_put(hw->clk); |