Patchwork [1/1] drivers/rtc/rtc-ds1305.c: Remove redundant spi_set_drvdata

login
register
mail settings
Submitter Sachin Kamat
Date Sept. 20, 2013, 4:21 a.m.
Message ID <1379650891-20955-1-git-send-email-sachin.kamat@linaro.org>
Download mbox | patch
Permalink /patch/276207/
State New
Headers show

Comments

Sachin Kamat - Sept. 20, 2013, 4:21 a.m.
Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/rtc/rtc-ds1305.c |    1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/drivers/rtc/rtc-ds1305.c b/drivers/rtc/rtc-ds1305.c
index dd6170a..fa3b092 100644
--- a/drivers/rtc/rtc-ds1305.c
+++ b/drivers/rtc/rtc-ds1305.c
@@ -787,7 +787,6 @@  static int ds1305_remove(struct spi_device *spi)
 		cancel_work_sync(&ds1305->work);
 	}
 
-	spi_set_drvdata(spi, NULL);
 	return 0;
 }