Skip to content

Commit

Permalink
spi/spi_nuc900: Use spi_bitbang_stop instead of spi_unregister_master…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Axel Lin authored and Grant Likely committed May 20, 2011
1 parent 8901e1b commit 708a7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_nuc900.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 708a7e4

Please sign in to comment.