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>
#define PFX KBUILD_MODNAME ": "
-#define VERSION "0.5"
+#define VERSION "1.0"
static struct {
unsigned long inuse;
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)) {