Skip to content

Commit

Permalink
spi: spi-nuc900: Remove redundant platform_set_drvdata()
Browse files Browse the repository at this point in the history
Setting platform data to NULL is not necessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Sachin Kamat authored and Mark Brown committed Jun 6, 2013
1 parent d683b96 commit 26cb3bb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-nuc900.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,6 @@ static int nuc900_spi_remove(struct platform_device *dev)

free_irq(hw->irq, hw);

platform_set_drvdata(dev, NULL);

spi_bitbang_stop(&hw->bitbang);

clk_disable(hw->clk);
Expand Down

0 comments on commit 26cb3bb

Please sign in to comment.