Skip to contentSkip to conversation

rtc-rtc-ds1302-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-ds1302-remove-unnecessary-platform_set_drvdata.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:31:48 -0700

The patch titled
Subject: rtc: rtc-ds1302: remove unnecessary platform_set_drvdata()
has been removed from the -mm tree. Its filename was
rtc-rtc-ds1302-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-ds1302: 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-ds1302.c |    2 --
 1 file changed, 2 deletions(-)
drivers/rtc/rtc-ds1302.c renamed from drivers/rtc/rtc-ds1302.c~rtc-rtc-ds1302-remove-unnecessary-platform_set_drvdata +0 -1
diff -puN drivers/rtc/rtc-ds1302.c~rtc-rtc-ds1302-remove-unnecessary-platform_set_drvdata drivers/rtc/rtc-ds1302.c
@@ -236,8 +236,6 @@ static int __init ds1302_rtc_probe(struc
 
 static int __exit ds1302_rtc_remove(struct platform_device *pdev)
 {
-	platform_set_drvdata(pdev, NULL);