Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347993
b: refs/heads/master
c: 1ba8538
h: refs/heads/master
i:
  347991: 2040eca
v: v3
  • Loading branch information
Aaro Koskinen authored and Wim Van Sebroeck committed Dec 19, 2012
1 parent 89de788 commit 68872e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef4817472982b3b6d993e6456cfad58dc848ef70
refs/heads/master: 1ba85387f0224dca9f0f9d783b09c9ceeb1c91bd
11 changes: 4 additions & 7 deletions trunk/drivers/watchdog/omap_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,10 @@ static int omap_wdt_probe(struct platform_device *pdev)
omap_wdt_disable(wdev);

ret = watchdog_register_device(omap_wdt);
if (ret)
goto err_register;
if (ret) {
pm_runtime_disable(wdev->dev);
return ret;
}

pr_info("OMAP Watchdog Timer Rev 0x%02x: initial timeout %d sec\n",
__raw_readl(wdev->base + OMAP_WATCHDOG_REV) & 0xFF,
Expand All @@ -275,11 +277,6 @@ static int omap_wdt_probe(struct platform_device *pdev)
pm_runtime_put_sync(wdev->dev);

return 0;

err_register:
pm_runtime_disable(wdev->dev);

return ret;
}

static void omap_wdt_shutdown(struct platform_device *pdev)
Expand Down

0 comments on commit 68872e3

Please sign in to comment.