diff mbox

[2/3] spi: spi-s3c24xx: Remove redundant platform_set_drvdata()

Message ID 1369987148-22970-2-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat May 31, 2013, 7:59 a.m. UTC
Setting platform data to NULL is not necessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/spi/spi-s3c24xx.c |    2 --
 1 file changed, 2 deletions(-)

Comments

Mark Brown June 1, 2013, 7:17 p.m. UTC | #1
On Fri, May 31, 2013 at 01:29:07PM +0530, Sachin Kamat wrote:
> Setting platform data to NULL is not necessary.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c
index 02d6460..68910b3 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);