Skip to contentSkip to conversation

rtc-rtc-mc13xxx-remove-unnecessary-platform_set_drvdata.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 8, 2013 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: [merged] rtc-rtc-mc13xxx-remove-unnecessary-platform_set_drvdata.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:32:06 -0700

The patch titled
Subject: rtc: rtc-mc13xxx: remove unnecessary platform_set_drvdata()
has been removed from the -mm tree. Its filename was
rtc-rtc-mc13xxx-remove-unnecessary-platform_set_drvdata.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jingoo Han <[email protected]>
Subject: rtc: rtc-mc13xxx: 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.

---

 drivers/rtc/rtc-mc13xxx.c |    4 ----
 1 file changed, 4 deletions(-)
drivers/rtc/rtc-mc13xxx.c renamed from drivers/rtc/rtc-mc13xxx.c~rtc-rtc-mc13xxx-remove-unnecessary-platform_set_drvdata +0 -3
diff -puN drivers/rtc/rtc-mc13xxx.c~rtc-rtc-mc13xxx-remove-unnecessary-platform_set_drvdata drivers/rtc/rtc-mc13xxx.c
@@ -370,8 +370,6 @@ err_reset_irq_status:
 err_reset_irq_request:
 
 		mc13xxx_unlock(mc13xxx);
-
-		platform_set_drvdata(pdev, NULL);
 	}
 
 	return ret;
@@ -389,8 +387,6 @@ static int __exit mc13xxx_rtc_remove(str
 
 	mc13xxx_unlock(priv->mc13xxx);
 
-	platform_set_drvdata(pdev, NULL);