aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/omap_wdt.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c
index 1474c2bd3077..34ed61ea02b4 100644
--- a/drivers/watchdog/omap_wdt.c
+++ b/drivers/watchdog/omap_wdt.c
@@ -265,8 +265,10 @@ static int omap_wdt_probe(struct platform_device *pdev)
265 omap_wdt_disable(wdev); 265 omap_wdt_disable(wdev);
266 266
267 ret = watchdog_register_device(omap_wdt); 267 ret = watchdog_register_device(omap_wdt);
268 if (ret) 268 if (ret) {
269 goto err_register; 269 pm_runtime_disable(wdev->dev);
270 return ret;
271 }
270 272
271 pr_info("OMAP Watchdog Timer Rev 0x%02x: initial timeout %d sec\n", 273 pr_info("OMAP Watchdog Timer Rev 0x%02x: initial timeout %d sec\n",
272 __raw_readl(wdev->base + OMAP_WATCHDOG_REV) & 0xFF, 274 __raw_readl(wdev->base + OMAP_WATCHDOG_REV) & 0xFF,
@@ -275,11 +277,6 @@ static int omap_wdt_probe(struct platform_device *pdev)
275 pm_runtime_put_sync(wdev->dev); 277 pm_runtime_put_sync(wdev->dev);
276 278
277 return 0; 279 return 0;
278
279err_register:
280 pm_runtime_disable(wdev->dev);
281
282 return ret;
283} 280}
284 281
285static void omap_wdt_shutdown(struct platform_device *pdev) 282static void omap_wdt_shutdown(struct platform_device *pdev)