Subject: [merged] drivers-rtc-rtc-twlc-fix-rtcx-wakealarm-attribute-isnt-created.patch removed from -mm tree To: grygorii.strashko@xxxxxx,khilman@xxxxxxxxxx,tony@xxxxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 05 Aug 2013 12:05:57 -0700 The patch titled Subject: drivers/rtc/rtc-twl.c: fix: rtcX/wakealarm attribute isn't created has been removed from the -mm tree. Its filename was drivers-rtc-rtc-twlc-fix-rtcx-wakealarm-attribute-isnt-created.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Grygorii Strashko <grygorii.strashko@xxxxxx> Subject: drivers/rtc/rtc-twl.c: fix: rtcX/wakealarm attribute isn't created The device_init_wakeup() should be called before rtc_device_register(). Otherwise, sysfs "sys/class/rtc/rtcX/wakealarm" attribute will not be seen from User space. Signed-off-by: Grygorii Strashko <grygorii.strashko@xxxxxx> Cc: Kevin Hilman <khilman@xxxxxxxxxx> Cc: Tony Lindgren <tony@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/rtc/rtc-twl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN drivers/rtc/rtc-twl.c~drivers-rtc-rtc-twlc-fix-rtcx-wakealarm-attribute-isnt-created drivers/rtc/rtc-twl.c --- a/drivers/rtc/rtc-twl.c~drivers-rtc-rtc-twlc-fix-rtcx-wakealarm-attribute-isnt-created +++ a/drivers/rtc/rtc-twl.c @@ -524,6 +524,8 @@ static int twl_rtc_probe(struct platform if (ret < 0) goto out1; + device_init_wakeup(&pdev->dev, 1); + rtc = rtc_device_register(pdev->name, &pdev->dev, &twl_rtc_ops, THIS_MODULE); if (IS_ERR(rtc)) { @@ -542,7 +544,6 @@ static int twl_rtc_probe(struct platform } platform_set_drvdata(pdev, rtc); - device_init_wakeup(&pdev->dev, 1); return 0; out2: _ Patches currently in -mm which might be from grygorii.strashko@xxxxxx are 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