mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-01 08:20:44 -05:00
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:
parent
4724ba575e
commit
bb6f36070c
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue