]> git.hungrycats.org Git - linux/commitdiff
[WATCHDOG] wafer5823wdt.c - patch4
authorWim Van Sebroeck <wim@iguana.be>
Wed, 3 Sep 2003 23:59:34 +0000 (01:59 +0200)
committerWim Van Sebroeck <linux-watchdog.adm@hostme.bitkeeper.com>
Wed, 3 Sep 2003 23:59:34 +0000 (01:59 +0200)
remove module_param's for wdt_start and wdt_stop
fix timeout check in init procedure

drivers/char/watchdog/wafer5823wdt.c

index b855ef5652720ba2c23d4d0094a67f861796709c..98cac9f1211e7f3d4289f3dfd480ec3958ffbe07 100644 (file)
@@ -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);