diff options
author | Ameya Palande <ameya.palande@nokia.com> | 2010-05-17 07:12:15 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2010-05-25 05:05:46 -0400 |
commit | bb6f36070cf53ebf08383a026e1d3a437cb310d1 (patch) | |
tree | 8ebb29832f65be86687a5d6aa7e8bcc725822760 /drivers/watchdog/twl4030_wdt.c | |
parent | 4724ba575ea73431aba8a48be6f5a382c470418d (diff) |
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>
Diffstat (limited to 'drivers/watchdog/twl4030_wdt.c')
-rw-r--r-- | drivers/watchdog/twl4030_wdt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/watchdog/twl4030_wdt.c b/drivers/watchdog/twl4030_wdt.c index dcabe77ad141..b5045ca7e61c 100644 --- a/drivers/watchdog/twl4030_wdt.c +++ b/drivers/watchdog/twl4030_wdt.c | |||
@@ -190,6 +190,8 @@ static int __devinit twl4030_wdt_probe(struct platform_device *pdev) | |||
190 | 190 | ||
191 | twl4030_wdt_dev = pdev; | 191 | twl4030_wdt_dev = pdev; |
192 | 192 | ||
193 | twl4030_wdt_disable(wdt); | ||
194 | |||
193 | ret = misc_register(&wdt->miscdev); | 195 | ret = misc_register(&wdt->miscdev); |
194 | if (ret) { | 196 | if (ret) { |
195 | dev_err(wdt->miscdev.parent, | 197 | dev_err(wdt->miscdev.parent, |