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: Ameya Palande <[email protected]>
Acked-By: Timo Kokkonen <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
This commit is contained in:
Ameya Palande 2010-05-17 14:12:15 +03:00 • committed by Wim Van Sebroeck
commit bb6f36070c

View file

@ -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,