aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-03 18:06:17 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 19:07:49 -0400
commit90566e1d35ceb4a83e007b25711afa6fcf615ed4 (patch)
tree39d7c3593e8381e95d6bfe2ee7570b6f72bc0652
parent7fcbf5fd5eb74eea9e136adc1e6364a8e7a98134 (diff)
rtc: rtc-da9052: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d063100 ("device-core: Ensure drvdata = NULL when no driver is bound"). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/rtc/rtc-da9052.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-da9052.c b/drivers/rtc/rtc-da9052.c
index 7286b279cf2d..a61ab7fa8a66 100644
--- a/drivers/rtc/rtc-da9052.c
+++ b/drivers/rtc/rtc-da9052.c
@@ -257,8 +257,6 @@ static int da9052_rtc_probe(struct platform_device *pdev)
257 257
258static int da9052_rtc_remove(struct platform_device *pdev) 258static int da9052_rtc_remove(struct platform_device *pdev)
259{ 259{
260 platform_set_drvdata(pdev, NULL);
261
262 return 0; 260 return 0;
263} 261}
264 262