Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ameya Palande and committed by
Wim Van Sebroeck
bb6f3607 4724ba57

+2
+2
drivers/watchdog/twl4030_wdt.c
··· 190 190 191 191 twl4030_wdt_dev = pdev; 192 192 193 + twl4030_wdt_disable(wdt); 194 + 193 195 ret = misc_register(&wdt->miscdev); 194 196 if (ret) { 195 197 dev_err(wdt->miscdev.parent,