Commit bb6f3607 authored by Ameya Palande's avatar Ameya Palande Committed by Wim Van Sebroeck

watchdog: twl4030_wdt: Disable watchdog during probing

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: default avatarAmeya Palande <ameya.palande@nokia.com>
Acked-By: default avatarTimo Kokkonen <timo.t.kokkonen@nokia.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 4724ba57
...@@ -190,6 +190,8 @@ static int __devinit twl4030_wdt_probe(struct platform_device *pdev) ...@@ -190,6 +190,8 @@ static int __devinit twl4030_wdt_probe(struct platform_device *pdev)
twl4030_wdt_dev = pdev; twl4030_wdt_dev = pdev;
twl4030_wdt_disable(wdt);
ret = misc_register(&wdt->miscdev); ret = misc_register(&wdt->miscdev);
if (ret) { if (ret) {
dev_err(wdt->miscdev.parent, dev_err(wdt->miscdev.parent,
......
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