diff options
author | Phil Reid <preid@electromag.com.au> | 2017-02-24 06:12:51 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-02-24 13:14:53 +0300 |
commit | d4f6c6f15a1f57e10374cf1a457f4eab5933bd0c (patch) | |
tree | 38de5b6128eab750323809c445502701ca1d0ebc /arch/arm | |
parent | 3769a375ab8380ebecc78d0a3fe6e9079f9d6988 (diff) | |
download | linux-d4f6c6f15a1f57e10374cf1a457f4eab5933bd0c.tar.xz |
rtc: ds3232: Call device_init_wakeup before device_register
The wakealarm attribute is currently not exposed in the sysfs interface
as the device has not been set as doing wakealarm when device_register
is called. Changing the order of the calls fixes that problem. Interrupts
are cleared in check_rtc_status prior to requesting the interrupt.
This is only set if an irq is defined. If irq registration fails then
set wakeup_capable to false. With this change the sysfs wakealarm
attribute will be left visible but it is non functional. rtcwake
still returns that the device is not enabled for wakeup.
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions