Commit 8605fec1 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Wim Van Sebroeck

watchdog: omap: don't disable the timer when it should be enabled early

With the early_enable module parameter the watchdog can be started
during driver probe time. If this is requested the bets are good that
the timer is already running, so to narrow the gap where the timer is
disabled only call the disable function when the timer shouldn't be
Signed-off-by: default avatarUwe Kleine-König <>
Signed-off-by: default avatarGuenter Roeck <>
Signed-off-by: default avatarWim Van Sebroeck <>
parent a6392490
......@@ -271,7 +271,8 @@ static int omap_wdt_probe(struct platform_device *pdev)
wdev->wdog.bootstatus = WDIOF_CARDRESET;
if (!early_enable)
ret = watchdog_register_device(&wdev->wdog);
if (ret) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment