summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-vr41xx.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-03 15:06:39 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 16:07:52 -0700
commitfedd5f49618f11dd08f99c4106c5fc43951ba4b0 (patch)
tree0da815b3b2ade9667385ee5104c6f4385cedf7eb /drivers/rtc/rtc-vr41xx.c
parentca5f4389a81bdceb151ba7f806a6a807d0c8893f (diff)
downloadlwn-fedd5f49618f11dd08f99c4106c5fc43951ba4b0.tar.gz
lwn-fedd5f49618f11dd08f99c4106c5fc43951ba4b0.zip
rtc: rtc-vr41xx: 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>
Diffstat (limited to 'drivers/rtc/rtc-vr41xx.c')
-rw-r--r--drivers/rtc/rtc-vr41xx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-vr41xx.c b/drivers/rtc/rtc-vr41xx.c
index b940c2374904..3b5b4fa9a6e9 100644
--- a/drivers/rtc/rtc-vr41xx.c
+++ b/drivers/rtc/rtc-vr41xx.c
@@ -381,8 +381,6 @@ static int rtc_remove(struct platform_device *pdev)
if (rtc)
rtc_device_unregister(rtc);
- platform_set_drvdata(pdev, NULL);
-
free_irq(aie_irq, pdev);
free_irq(pie_irq, pdev);
if (rtc1_base)