Skip to content

Commit

Permalink
watchdog: twl4030_wdt: Disable watchdog during probing
Browse files Browse the repository at this point in the history
If we are not able to register then it is better to have
watchdog in disabled state than noticing a system reboot.

Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
Acked-By: Timo Kokkonen <timo.t.kokkonen@nokia.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Ameya Palande authored and Wim Van Sebroeck committed May 25, 2010
1 parent 4724ba5 commit bb6f360
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/watchdog/twl4030_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ static int __devinit twl4030_wdt_probe(struct platform_device *pdev)

twl4030_wdt_dev = pdev;

twl4030_wdt_disable(wdt);

ret = misc_register(&wdt->miscdev);
if (ret) {
dev_err(wdt->miscdev.parent,
Expand Down

0 comments on commit bb6f360

Please sign in to comment.