summaryrefslogtreecommitdiffstats
path: root/drivers/char/watchdog/scx200_wdt.c
diff options
context:
space:
mode:
authorAndrey Panin2005-07-27 20:43:58 +0200
committerLinus Torvalds2005-07-28 01:25:54 +0200
commit4bfdf37830111321e2cd1fe0102dd776ce93194d (patch)
tree9791422b964d2aeae7772ac0462f1953e2f63447 /drivers/char/watchdog/scx200_wdt.c
parent[PATCH] Fix warning in powernow-k8.c (diff)
downloadkernel-qcow2-linux-4bfdf37830111321e2cd1fe0102dd776ce93194d.tar.gz
kernel-qcow2-linux-4bfdf37830111321e2cd1fe0102dd776ce93194d.tar.xz
kernel-qcow2-linux-4bfdf37830111321e2cd1fe0102dd776ce93194d.zip
[PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling
Attached patch removes #ifdef CONFIG_WATCHDOG_NOWAYOUT mess duplicated in almost every watchdog driver and replaces it with common define in linux/watchdog.h. Signed-off-by: Andrey Panin <pazke@donpac.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/watchdog/scx200_wdt.c')
-rw-r--r--drivers/char/watchdog/scx200_wdt.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/char/watchdog/scx200_wdt.c b/drivers/char/watchdog/scx200_wdt.c
index b569670e4ed5..c4568569f3a8 100644
--- a/drivers/char/watchdog/scx200_wdt.c
+++ b/drivers/char/watchdog/scx200_wdt.c
@@ -39,15 +39,11 @@ MODULE_DESCRIPTION("NatSemi SCx200 Watchdog Driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);
-#ifndef CONFIG_WATCHDOG_NOWAYOUT
-#define CONFIG_WATCHDOG_NOWAYOUT 0
-#endif
-
static int margin = 60; /* in seconds */
module_param(margin, int, 0);
MODULE_PARM_DESC(margin, "Watchdog margin in seconds");
-static int nowayout = CONFIG_WATCHDOG_NOWAYOUT;
+static int nowayout = WATCHDOG_NOWAYOUT;
module_param(nowayout, int, 0);
MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close");