diff options
author | Simon Guinot <simon.guinot@sequanux.org> | 2015-11-26 15:37:13 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-11-26 18:11:26 +0100 |
commit | 3abb1ada21a4fb5b2920457a2e5c8483abb09a45 (patch) | |
tree | 88ead2d36f6031a3252bc5f291b738735464f336 /drivers/block/null_blk.c | |
parent | rtc: ds1307: fix kernel splat due to wakeup irq handling (diff) | |
download | linux-3abb1ada21a4fb5b2920457a2e5c8483abb09a45.tar.xz linux-3abb1ada21a4fb5b2920457a2e5c8483abb09a45.zip |
rtc: ds1307: fix alarm reading at probe time
With the actual code, read_alarm() always returns -EINVAL when called
during the RTC device registration. This prevents from retrieving an
already configured alarm in hardware.
This patch fixes the issue by moving the HAS_ALARM bit configuration
(if supported by the hardware) above the rtc_device_register() call.
Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/block/null_blk.c')
0 files changed, 0 insertions, 0 deletions