aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/imx_sc_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/imx_sc_wdt.c')
-rw-r--r--drivers/watchdog/imx_sc_wdt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/watchdog/imx_sc_wdt.c b/drivers/watchdog/imx_sc_wdt.c
index 49848b66186c..ed8adad5c16f 100644
--- a/drivers/watchdog/imx_sc_wdt.c
+++ b/drivers/watchdog/imx_sc_wdt.c
@@ -119,6 +119,11 @@ static int imx_sc_wdt_probe(struct platform_device *pdev)
imx_sc_wdd->timeout = DEFAULT_TIMEOUT;
watchdog_init_timeout(imx_sc_wdd, 0, dev);
+
+ ret = imx_sc_wdt_set_timeout(imx_sc_wdd, imx_sc_wdd->timeout);
+ if (ret)
+ return ret;
+
watchdog_stop_on_reboot(imx_sc_wdd);
watchdog_stop_on_unregister(imx_sc_wdd);