summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-10 09:57:38 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2013-05-16 13:54:14 +1000
commit82a7ff97e9c6e703ce5099e736e6294501c2863b (patch)
treefe89934d186e23494471546ac19d6b8ec53ba667 /drivers
parent81d2b04d56593a5b00f3cb5e012294cbe99290b9 (diff)
rtc: rtc-da9055: 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-da9055.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-da9055.c b/drivers/rtc/rtc-da9055.c
index 73858ca9709a..df4cf16a967d 100644
--- a/drivers/rtc/rtc-da9055.c
+++ b/drivers/rtc/rtc-da9055.c
@@ -317,8 +317,6 @@ err_rtc:
static int da9055_rtc_remove(struct platform_device *pdev)
{
- platform_set_drvdata(pdev, NULL);
-
return 0;
}