[WATCHDOG] mv64x60_wdt: disable watchdog timer when driver is probed
authorDale Farnsworth <dale@farnsworth.org>
Tue, 24 Jul 2007 18:19:47 +0000 (11:19 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 24 Jul 2007 21:16:24 +0000 (21:16 +0000)
Make sure that we disable the watchdog at start-up.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/char/watchdog/mv64x60_wdt.c

index e07007543d09ef626a65af4c684a736cadeb85d5..07582bb8aea44a2b9f43879ea586f4ab96f006c0 100644 (file)
@@ -261,6 +261,8 @@ static int __devinit mv64x60_wdt_probe(struct platform_device *dev)
 
        mv64x60_wdt_set_timeout(timeout);
 
+       mv64x60_wdt_handler_disable();  /* in case timer was already running */
+
        return misc_register(&mv64x60_wdt_miscdev);
 }
 
This page took 0.037012 seconds and 5 git commands to generate.