Kaynağa Gözat

spi: spi-s3c24xx: Remove redundant platform_set_drvdata()

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>
Sachin Kamat 12 yıl önce
ebeveyn
işleme
8471090479
1 değiştirilmiş dosya ile 0 ekleme ve 2 silme
  1. 0 2
      drivers/spi/spi-s3c24xx.c

+ 0 - 2
drivers/spi/spi-s3c24xx.c

@@ -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);