• Alexandre Belloni's avatar
    rtc: puv3: make alarms useful · 60d34552
    Alexandre Belloni authored
    Currently, the driver unregisters the IRQs 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.
    
    Move the IRQ requests to puv3_rtc_probe() and use the devm managed versions
    so we don't need to free them.
    Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
    60d34552
rtc-puv3.c 7.06 KB