diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2012-03-22 04:37:10 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-03-27 14:15:24 -0400 |
commit | 2ca1606359695cc7ce371c7829c4082d9095fc06 (patch) | |
tree | 61a686b7c0832c9fd2456f0515e5109643133462 | |
parent | 59dcf1eb1a4b15610c68a4dbb7430d61a65f4af3 (diff) |
watchdog: ep93xx_wdt: timeout is an unsigned int value.
the timeout is a positive thus unsigned int value.
Also re-add the comment about the actual heartbeat.
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
-rw-r--r-- | drivers/watchdog/ep93xx_wdt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/watchdog/ep93xx_wdt.c b/drivers/watchdog/ep93xx_wdt.c index 29575f8228bd..77050037597a 100644 --- a/drivers/watchdog/ep93xx_wdt.c +++ b/drivers/watchdog/ep93xx_wdt.c | |||
@@ -42,8 +42,8 @@ static bool nowayout = WATCHDOG_NOWAYOUT; | |||
42 | module_param(nowayout, bool, 0); | 42 | module_param(nowayout, bool, 0); |
43 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); | 43 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"); |
44 | 44 | ||
45 | static int timeout = WDT_TIMEOUT; | 45 | static unsigned int timeout = WDT_TIMEOUT; |
46 | module_param(timeout, int, 0); | 46 | module_param(timeout, uint, 0); |
47 | MODULE_PARM_DESC(timeout, | 47 | MODULE_PARM_DESC(timeout, |
48 | "Watchdog timeout in seconds. (1<=timeout<=3600, default=" | 48 | "Watchdog timeout in seconds. (1<=timeout<=3600, default=" |
49 | __MODULE_STRING(WDT_TIMEOUT) ")"); | 49 | __MODULE_STRING(WDT_TIMEOUT) ")"); |
@@ -55,7 +55,7 @@ static unsigned long next_heartbeat; | |||
55 | #define EP93XX_WATCHDOG 0x00 | 55 | #define EP93XX_WATCHDOG 0x00 |
56 | #define EP93XX_WDSTATUS 0x04 | 56 | #define EP93XX_WDSTATUS 0x04 |
57 | 57 | ||
58 | /* reset the wdt every ~200ms */ | 58 | /* reset the wdt every ~200ms - the heartbeat of the device is 0.250 seconds*/ |
59 | #define WDT_INTERVAL (HZ/5) | 59 | #define WDT_INTERVAL (HZ/5) |
60 | 60 | ||
61 | static void ep93xx_wdt_timer_ping(unsigned long data) | 61 | static void ep93xx_wdt_timer_ping(unsigned long data) |