]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[WATCHDOG] rc32434_wdt: make sure watchdog is not running at startup
authorWim Van Sebroeck <wim@iguana.be>
Mon, 23 Feb 2009 13:08:37 +0000 (13:08 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 25 Mar 2009 09:02:17 +0000 (09:02 +0000)
Make sure that the watchdog is not running after loading
and before it is started by opening /dev/watchdog.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/rc32434_wdt.c

index bffd4a2b1151a8a75d854391bd1e11d8292787d0..071ff7bb81d109a1c9d4e2e6166a0aea99cc95fe 100644 (file)
@@ -35,7 +35,7 @@
 
 #define PFX KBUILD_MODNAME ": "
 
-#define VERSION "0.5"
+#define VERSION "1.0"
 
 static struct {
        unsigned long inuse;
@@ -284,6 +284,9 @@ static int __devinit rc32434_wdt_probe(struct platform_device *pdev)
 
        spin_lock_init(&rc32434_wdt_device.io_lock);
 
+       /* Make sure the watchdog is not running */
+       rc32434_wdt_stop();
+
        /* Check that the heartbeat value is within it's range;
         * if not reset to the default */
        if (rc32434_wdt_set(timeout)) {