Skip to content

Commit

Permalink
[WATCHDOG] rc32434_wdt: make sure watchdog is not running at startup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wim Van Sebroeck committed Mar 25, 2009
1 parent e455b6b commit f296b14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/watchdog/rc32434_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#define PFX KBUILD_MODNAME ": "

#define VERSION "0.5"
#define VERSION "1.0"

static struct {
unsigned long inuse;
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit f296b14

Please sign in to comment.