diff options
author | Bruno Thomsen <[email protected]> | 2020-06-04 18:26:02 +0200 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2020-06-06 00:34:16 +0200 |
commit | 4601e24a6fb819d38d1156d0f690cbe6a42c6d76 (patch) | |
tree | 66c87699994129e556942a8a0f3a1a1ccccbd342 | |
parent | 3a8ce46ce15accad53b39837735c12d886964211 (diff) |
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 <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Acked-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | drivers/rtc/rtc-pcf2127.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-pcf2127.c b/drivers/rtc/rtc-pcf2127.c index e5e3cd128476..9c5670776c68 100644 --- a/drivers/rtc/rtc-pcf2127.c +++ b/drivers/rtc/rtc-pcf2127.c @@ -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); |