summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorZhao Qiang <qiang.zhao@nxp.com>2020-11-27 10:52:17 +0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2020-12-13 18:17:41 +0300
commit42e967f3c6cb3828f07a3822d7249bccb55221a4 (patch)
tree084eeed2359edd2547d7db2348c7178df4127638 /drivers/watchdog
parent347755d2a88e54e7462be23f1e1a1018d9be4a4b (diff)
downloadlinux-42e967f3c6cb3828f07a3822d7249bccb55221a4.tar.xz
wdt: sp805: add watchdog_stop on reboot
Call watchdog_stop_on_reboot in probe func Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20201127075217.31312-1-qiang.zhao@nxp.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog')
-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;