Patchwork [08/10] drivers/rtc/rtc-cmos.c: Remove redundant dev_set_drvdata

login
register
mail settings
Submitter Sachin Kamat
Date Sept. 6, 2013, 11:33 a.m.
Message ID <1378467223-26231-8-git-send-email-sachin.kamat@linaro.org>
Download mbox | patch
Permalink /patch/273160/
State New
Headers show

Comments

Sachin Kamat - Sept. 6, 2013, 11:33 a.m.
Driver core sets the driver data to NULL upon device_release
or on probe failure.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/rtc/rtc-cmos.c |    1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
index be06d71..2b0bec1 100644
--- a/drivers/rtc/rtc-cmos.c
+++ b/drivers/rtc/rtc-cmos.c
@@ -789,7 +789,6 @@  static void __exit cmos_do_remove(struct device *dev)
 	cmos->iomem = NULL;
 
 	cmos->dev = NULL;
-	dev_set_drvdata(dev, NULL);
 }
 
 #ifdef	CONFIG_PM