+ drivers-rtc-rtc-ds1307c-fix-sysfs-wakealarm-attribute-creation.patch added to -mm tree
Subject: + drivers-rtc-rtc-ds1307c-fix-sysfs-wakealarm-attribute-creation.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 21 Feb 2014 11:59:56 -0800
The patch titled
Subject: drivers/rtc/rtc-ds1307.c: fix sysfs wakealarm attribute creation
has been added to the -mm tree. Its filename is
drivers-rtc-rtc-ds1307c-fix-sysfs-wakealarm-attribute-creation.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-ds1307c-fix-sysfs-wakealarm-attribute-creation.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-ds1307c-fix-sysfs-wakealarm-attribute-creation.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: Simon Guinot <[email protected]>
Subject: drivers/rtc/rtc-ds1307.c: fix sysfs wakealarm attribute creation
In order to allow the creation of the sysfs attribute wakealarm, this patch moves the device_set_wakeup_capable() call above the RTC device registration.
---
drivers/rtc/rtc-ds1307.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-ds1307.c renamed from drivers/rtc/rtc-ds1307.c~drivers-rtc-rtc-ds1307c-fix-sysfs-wakealarm-attribute-creation +1 -1
@@ -927,6 +927,7 @@ read_rtc: bin2bcd(tmp)); } +device_set_wakeup_capable (&client->dev, want_irq); ds1307->rtc =devm_rtc_device_register (&client->dev, client->name, &ds13xx_rtc_ops,THIS_MODULE );if (IS_ERR (ds1307->rtc)) {
@@ -945,7 +946,6 @@ read_rtc: goto exit; } -device_set_wakeup_capable (&client->dev,1 );set_bit (HAS_ALARM , &ds1307->flags);dev_dbg (&client->dev,"got IRQ %d\n" , client->irq); }
_
Patches currently in -mm which might be from [email protected] are
drivers-rtc-rtc-ds1307c-fix-sysfs-wakealarm-attribute-creation.patch drivers-rtc-rtc-sirfsocc-add-alarm-support-for-mcp7941x-chips.patch