diff options
author | Nizam Haider <nizamhaider786@gmail.com> | 2015-11-14 01:51:29 +0530 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-01-11 20:19:56 +0100 |
commit | 3fc2c14acaf925768db37cf439c628bfa71dff09 (patch) | |
tree | 723d032c14597dc40ce64a492ca9aed109141391 /drivers/rtc | |
parent | 501385f2a783c0a6cc52c8b984892c57175857f9 (diff) | |
download | op-kernel-dev-3fc2c14acaf925768db37cf439c628bfa71dff09.zip op-kernel-dev-3fc2c14acaf925768db37cf439c628bfa71dff09.tar.gz |
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')
-rw-r--r-- | drivers/rtc/rtc-gemini.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-gemini.c b/drivers/rtc/rtc-gemini.c index e841846..f46b6d4 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; } |