rtc: vr41xx: make alarms useful
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 23 Aug 2017 20:37:22 +0000 (22:37 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 24 Aug 2017 09:03:36 +0000 (11:03 +0200)
commit0a53a167224d1c8cb90166f7cce96631b635f33c
treedae727a7a1d5047ef15fa3e217520ac604efb335
parent512053a43d95d4da65565fc74c63906083d419bb
rtc: vr41xx: make alarms useful

Currently, the IRQs are disabled when the rtc character device is closed.
This means that the device needs to stay open to get alarms while the usual
use case will open the device, set the alarm and close the device.

Keep the alarms functional on character device release. Note that the PIE
are never enabled and would anyway be disabled by the core.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-vr41xx.c