Przeglądaj źródła

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 <ameya.palande@nokia.com>
Acked-By: Timo Kokkonen <timo.t.kokkonen@nokia.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Ameya Palande 15 lat temu
rodzic
commit
bb6f36070c
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      drivers/watchdog/twl4030_wdt.c

+ 2 - 0
drivers/watchdog/twl4030_wdt.c

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