rtc: pcf2127: watchdog: handle nowayout feature
authorBruno Thomsen <bruno.thomsen@gmail.com>
Thu, 4 Jun 2020 16:26:02 +0000 (18:26 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 5 Jun 2020 22:34:16 +0000 (00:34 +0200)
commit4601e24a6fb819d38d1156d0f690cbe6a42c6d76
tree66c87699994129e556942a8a0f3a1a1ccccbd342
parent3a8ce46ce15accad53b39837735c12d886964211
rtc: pcf2127: watchdog: handle nowayout feature

Driver does not use module parameter for nowayout, so it need to
statically initialize status variable of the watchdog_device based
on CONFIG_WATCHDOG_NOWAYOUT.

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200604162602.76524-1-bruno.thomsen@gmail.com
drivers/rtc/rtc-pcf2127.c