aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-vr41xx.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-03 18:06:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 19:07:52 -0400
commitfedd5f49618f11dd08f99c4106c5fc43951ba4b0 (patch)
tree0da815b3b2ade9667385ee5104c6f4385cedf7eb /drivers/rtc/rtc-vr41xx.c
parentca5f4389a81bdceb151ba7f806a6a807d0c8893f (diff)
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)
381 if (rtc) 381 if (rtc)
382 rtc_device_unregister(rtc); 382 rtc_device_unregister(rtc);
383 383
384 platform_set_drvdata(pdev, NULL);
385
386 free_irq(aie_irq, pdev); 384 free_irq(aie_irq, pdev);
387 free_irq(pie_irq, pdev); 385 free_irq(pie_irq, pdev);
388 if (rtc1_base) 386 if (rtc1_base)