Commit f296b143 authored by Wim Van Sebroeck's avatar Wim Van Sebroeck

[WATCHDOG] rc32434_wdt: make sure watchdog is not running at startup

Make sure that the watchdog is not running after loading
and before it is started by opening /dev/watchdog.
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent e455b6b4
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment