spi: spi-s3c24xx: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 31 May 2013 07:59:07 +0000 (13:29 +0530)
committerMark Brown <broonie@linaro.org>
Sat, 1 Jun 2013 19:17:36 +0000 (20:17 +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-s3c24xx.c

index 02d64603fcc54988f33b1ad74e89a27fdf31a216..68910b3101525e88bf9fcf675f7755ef5d790a04 100644 (file)
@@ -667,8 +667,6 @@ static int s3c24xx_spi_remove(struct platform_device *dev)
 {
        struct s3c24xx_spi *hw = platform_get_drvdata(dev);
 
-       platform_set_drvdata(dev, NULL);
-
        spi_bitbang_stop(&hw->bitbang);
 
        clk_disable(hw->clk);