]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: spi-nuc900: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 31 May 2013 07:59:06 +0000 (13:29 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 6 Jun 2013 10:58:11 +0000 (11:58 +0100)
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>
drivers/spi/spi-nuc900.c

index b3f9ec83ef7361b98c05d1c42a9ee40949ab585b..150d85453c27d2c2d5347402113cc52547180db4 100644 (file)
@@ -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);