aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Qiang <[email protected]>2020-11-27 15:52:17 +0800
committerWim Van Sebroeck <[email protected]>2020-12-13 16:17:41 +0100
commit42e967f3c6cb3828f07a3822d7249bccb55221a4 (patch)
tree084eeed2359edd2547d7db2348c7178df4127638
parent347755d2a88e54e7462be23f1e1a1018d9be4a4b (diff)
wdt: sp805: add watchdog_stop on reboot
Call watchdog_stop_on_reboot in probe func Signed-off-by: Zhao Qiang <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
-rw-r--r--drivers/watchdog/sp805_wdt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c
index 190d26e2e75f..958dc32a708f 100644
--- a/drivers/watchdog/sp805_wdt.c
+++ b/drivers/watchdog/sp805_wdt.c
@@ -291,6 +291,7 @@ sp805_wdt_probe(struct amba_device *adev, const struct amba_id *id)
set_bit(WDOG_HW_RUNNING, &wdt->wdd.status);
}
+ watchdog_stop_on_reboot(&wdt->wdd);
ret = watchdog_register_device(&wdt->wdd);
if (ret)
goto err;