提交 bb6f3607 编写于 作者: A Ameya Palande 提交者: 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: NAmeya Palande <ameya.palande@nokia.com>
Acked-By: NTimo Kokkonen <timo.t.kokkonen@nokia.com>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 4724ba57
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册