rtc: s5m: enable wakeup only when available
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 4 Aug 2021 10:41:31 +0000 (12:41 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 6 Aug 2021 08:31:59 +0000 (10:31 +0200)
commit308247d20464a684f335001f2f835240e67f9126
treec45e58e29442b0cb1e6efe1a8c02004cfbf34a07
parent1ed4dba2bc166bae5af713a114ed91619ef70c43
rtc: s5m: enable wakeup only when available

Call device_init_wakeup() only when alarms are available and the RTC is
actually able to wake up the system.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210804104133.5158-3-alexandre.belloni@bootlin.com
drivers/rtc/rtc-s5m.c