summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-gemini.c
diff options
context:
space:
mode:
authorNizam Haider <nizamhaider786@gmail.com>2015-11-13 23:21:29 +0300
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-01-11 22:19:56 +0300
commit3fc2c14acaf925768db37cf439c628bfa71dff09 (patch)
tree723d032c14597dc40ce64a492ca9aed109141391 /drivers/rtc/rtc-gemini.c
parent501385f2a783c0a6cc52c8b984892c57175857f9 (diff)
downloadlinux-3fc2c14acaf925768db37cf439c628bfa71dff09.tar.xz
rtc: gemini: Remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure Signed-off-by: Nizam Haider <nijamh@cdac.in> Acked-by: Hans Ulli Kroll <ulli.kroll@googlemail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-gemini.c')
-rw-r--r--drivers/rtc/rtc-gemini.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-gemini.c b/drivers/rtc/rtc-gemini.c
index e84184647d15..f46b6d46a51b 100644
--- a/drivers/rtc/rtc-gemini.c
+++ b/drivers/rtc/rtc-gemini.c
@@ -156,7 +156,6 @@ static int gemini_rtc_remove(struct platform_device *pdev)
struct gemini_rtc *rtc = platform_get_drvdata(pdev);
rtc_device_unregister(rtc->rtc_dev);
- platform_set_drvdata(pdev, NULL);
return 0;
}