From cf7691bd570032d0357d55fda453410825391d4b Mon Sep 17 00:00:00 2001 From: Wim Van Sebroeck Date: Thu, 4 Sep 2003 01:59:34 +0200 Subject: [PATCH] [WATCHDOG] wafer5823wdt.c - patch4 remove module_param's for wdt_start and wdt_stop fix timeout check in init procedure --- drivers/char/watchdog/wafer5823wdt.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/char/watchdog/wafer5823wdt.c b/drivers/char/watchdog/wafer5823wdt.c index b855ef5652720..98cac9f1211e7 100644 --- a/drivers/char/watchdog/wafer5823wdt.c +++ b/drivers/char/watchdog/wafer5823wdt.c @@ -57,12 +57,7 @@ static spinlock_t wafwdt_lock; */ static int wdt_stop = 0x843; -module_param(wdt_stop, int, 0); -MODULE_PARM_DESC(wdt_stop, "Wafer 5823 WDT 'stop' io port (default 0x843)"); - static int wdt_start = 0x443; -module_param(wdt_start, int, 0); -MODULE_PARM_DESC(wdt_start, "Wafer 5823 WDT 'start' io port (default 0x443)"); static int timeout = WD_TIMO; /* in seconds */ module_param(timeout, int, 0); @@ -269,7 +264,7 @@ static int __init wafwdt_init(void) spin_lock_init(&wafwdt_lock); - if (timeout < 1 || timeout > 63) { + if (timeout < 1 || timeout > 255) { timeout = WD_TIMO; printk (KERN_INFO PFX "timeout value must be 1<=x<=255, using %d\n", timeout); -- 2.53.0