]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
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)
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

index e5e3cd128476b6b4875e5acc0c0ebedf8ddedb99..9c5670776c68d9713db3267fab95cc0b0972f7ed 100644 (file)
@@ -448,6 +448,7 @@ static int pcf2127_probe(struct device *dev, struct regmap *regmap,
        pcf2127->wdd.max_timeout = PCF2127_WD_VAL_MAX;
        pcf2127->wdd.timeout = PCF2127_WD_VAL_DEFAULT;
        pcf2127->wdd.min_hw_heartbeat_ms = 500;
+       pcf2127->wdd.status = WATCHDOG_NOWAYOUT_INIT_STATUS;
 
        watchdog_set_drvdata(&pcf2127->wdd, pcf2127);