Subject: + rtc-pm8xxx-move-device_init_wakeup-before-rtc_register.patch added to -mm tree To: joshc@xxxxxxxxxxxxxx,a.zummo@xxxxxxxxxxxx,sboyd@xxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx> Reviewed-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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); - dev_dbg(&pdev->dev, "Probe success !!\n"); return 0; _ Patches currently in -mm which might be from joshc@xxxxxxxxxxxxxx are rtc-pm8xxx-fixup-checkpatch-style-issues.patch rtc-pm8xxx-use-regmap-api-for-register-accesses.patch rtc-pm8xxx-use-devm_request_any_context_irq.patch rtc-pm8xxx-add-support-for-devicetree.patch rtc-pm8xxx-move-device_init_wakeup-before-rtc_register.patch documentation-bindings-document-pmic8921-8058-rtc.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html