From: Sachin Kamat Date: Fri, 31 May 2013 07:59:07 +0000 (+0530) Subject: spi: spi-s3c24xx: Remove redundant platform_set_drvdata() X-Git-Tag: next-20130607~36^2~4^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8471090479df5aa0a439c1dd673c3d4904ea7c1d;p=karo-tx-linux.git spi: spi-s3c24xx: Remove redundant platform_set_drvdata() Setting platform data to NULL is not necessary. Signed-off-by: Sachin Kamat Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index 02d64603fcc5..68910b310152 100644 --- a/drivers/spi/spi-s3c24xx.c +++ b/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);