mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
347755d2a8
commit
42e967f3c6
|
@ -291,6 +291,7 @@ sp805_wdt_probe(struct amba_device *adev, const struct amba_id *id)
|
||||||
set_bit(WDOG_HW_RUNNING, &wdt->wdd.status);
|
set_bit(WDOG_HW_RUNNING, &wdt->wdd.status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watchdog_stop_on_reboot(&wdt->wdd);
|
||||||
ret = watchdog_register_device(&wdt->wdd);
|
ret = watchdog_register_device(&wdt->wdd);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
Loading…
Reference in New Issue