* + rtc-pm8xxx-move-device_init_wakeup-before-rtc_register.patch added to -mm tree
@ 2014-03-10 20:48 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2014-03-10 20:48 UTC (permalink / raw)
To: mm-commits, sboyd, a.zummo, joshc
Subject: + rtc-pm8xxx-move-device_init_wakeup-before-rtc_register.patch added to -mm tree
To: joshc@codeaurora.org,a.zummo@towertech.it,sboyd@codeaurora.org
From: akpm@linux-foundation.org
Date: Mon, 10 Mar 2014 13:48:07 -0700
The patch titled
Subject: rtc: pm8xxx: move device_init_wakeup() before rtc_register
has been added to the -mm tree. Its filename is
rtc-pm8xxx-move-device_init_wakeup-before-rtc_register.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/rtc-pm8xxx-move-device_init_wakeup-before-rtc_register.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/rtc-pm8xxx-move-device_init_wakeup-before-rtc_register.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: Josh Cartwright <joshc@codeaurora.org>
Subject: rtc: pm8xxx: move device_init_wakeup() before rtc_register
Setup wakeup capability before rtc_register to ensure the rtc class core
properly sets up our 'wakealarm' sysfs attribute.
Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/rtc/rtc-pm8xxx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/rtc/rtc-pm8xxx.c~rtc-pm8xxx-move-device_init_wakeup-before-rtc_register drivers/rtc/rtc-pm8xxx.c
--- a/drivers/rtc/rtc-pm8xxx.c~rtc-pm8xxx-move-device_init_wakeup-before-rtc_register
+++ a/drivers/rtc/rtc-pm8xxx.c
@@ -429,6 +429,8 @@ static int pm8xxx_rtc_probe(struct platf
platform_set_drvdata(pdev, rtc_dd);
+ device_init_wakeup(&pdev->dev, 1);
+
/* Register the RTC device */
rtc_dd->rtc = devm_rtc_device_register(&pdev->dev, "pm8xxx_rtc",
&pm8xxx_rtc_ops, THIS_MODULE);
@@ -448,8 +450,6 @@ static int pm8xxx_rtc_probe(struct platf
return rc;
}
- device_init_wakeup(&pdev->dev, 1);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-10 20:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-10 20:48 + rtc-pm8xxx-move-device_init_wakeup-before-rtc_register.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).