Skip to contentSkip to conversation

+ drivers-rtc-rtc-pl03xc-remove-unnecessary-amba_set_drvdata.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Oct 9, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: + drivers-rtc-rtc-pl03xc-remove-unnecessary-amba_set_drvdata.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 09 Oct 2013 15:57:41 -0700

The patch titled
Subject: drivers/rtc/rtc-pl03x.c: remove unnecessary amba_set_drvdata()
has been added to the -mm tree. Its filename is
drivers-rtc-rtc-pl03xc-remove-unnecessary-amba_set_drvdata.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-pl03xc-remove-unnecessary-amba_set_drvdata.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-pl03xc-remove-unnecessary-amba_set_drvdata.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Michal Simek <[email protected]>
Subject: drivers/rtc/rtc-pl03x.c: remove unnecessary amba_set_drvdata()

Driver core clears the driver data to NULL after device_release or on probe failure, so just remove it from here.

The relevant driver core change was 0998d063100128 ("device-core: Ensure drvdata = NULL when no driver is bound").

---

 drivers/rtc/rtc-pl030.c |    2 --
 drivers/rtc/rtc-pl031.c |    2 --
 2 files changed, 4 deletions(-)
drivers/rtc/rtc-pl030.c renamed from drivers/rtc/rtc-pl030.c~drivers-rtc-rtc-pl03xc-remove-unnecessary-amba_set_drvdata +0 -2
diff -puN drivers/rtc/rtc-pl030.c~drivers-rtc-rtc-pl03xc-remove-unnecessary-amba_set_drvdata drivers/rtc/rtc-pl030.c
@@ -153,8 +153,6 @@ static int pl030_remove(struct amba_devi
 {
 	struct pl030_rtc *rtc = amba_get_drvdata(dev);
 
-	amba_set_drvdata(dev, NULL);
-
 	writel(0, rtc->base + RTC_CR);
 
 	free_irq(dev->irq[0], rtc);
drivers/rtc/rtc-pl031.c renamed from drivers/rtc/rtc-pl031.c~drivers-rtc-rtc-pl03xc-remove-unnecessary-amba_set_drvdata +0 -2
diff -puN drivers/rtc/rtc-pl031.c~drivers-rtc-rtc-pl03xc-remove-unnecessary-amba_set_drvdata drivers/rtc/rtc-pl031.c
@@ -305,7 +305,6 @@ static int pl031_remove(struct amba_devi
 {
 	struct pl031_local *ldata = dev_get_drvdata(&adev->dev);
 
-	amba_set_drvdata(adev, NULL);
 	free_irq(adev->irq[0], ldata);
 	rtc_device_unregister(ldata->rtc);
 	iounmap(ldata->base);
@@ -392,7 +391,6 @@ out_no_irq:
 	rtc_device_unregister(ldata->rtc);
 out_no_rtc:
 	iounmap(ldata->base);
-	amba_set_drvdata(adev, NULL);
 out_no_remap:
 	kfree(ldata);
 out:

_

Patches currently in -mm which might be from [email protected] are

drivers-rtc-rtc-pl03xc-remove-unnecessary-amba_set_drvdata.patch linux-next.patch