[WATCHDOG] pcwd.c general clean-up after patches

removal of includes (since we don't use kmalloc and
TASK_INTERRUPTABLE anymore).
Addition of missing commands.
Printk that lets the user know when the module was
unloaded.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

+9 -2
+9 -2
drivers/char/watchdog/pcwd.c
··· 66 66 #include <linux/fs.h> /* For file operations */ 67 67 #include <linux/ioport.h> /* For io-port access */ 68 68 #include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */ 69 - #include <linux/sched.h> /* TASK_INTERRUPTIBLE, set_current_state() and friends */ 70 - #include <linux/slab.h> /* For kmalloc */ 71 69 72 70 #include <asm/uaccess.h> /* For copy_to_user/put_user/... */ 73 71 #include <asm/io.h> /* For inb/outb/... */ ··· 124 126 #define CMD_ISA_VERSION_HUNDRETH 0x03 125 127 #define CMD_ISA_VERSION_MINOR 0x04 126 128 #define CMD_ISA_SWITCH_SETTINGS 0x05 129 + #define CMD_ISA_RESET_PC 0x06 130 + #define CMD_ISA_ARM_0 0x07 131 + #define CMD_ISA_ARM_30 0x08 132 + #define CMD_ISA_ARM_60 0x09 127 133 #define CMD_ISA_DELAY_TIME_2SECS 0x0A 128 134 #define CMD_ISA_DELAY_TIME_4SECS 0x0B 129 135 #define CMD_ISA_DELAY_TIME_8SECS 0x0C 136 + #define CMD_ISA_RESET_RELAYS 0x0D 130 137 131 138 /* 132 139 * We are using an kernel timer to do the pinging of the watchdog ··· 476 473 if (temp_panic) { 477 474 printk (KERN_INFO PFX "Temperature overheat trip!\n"); 478 475 kernel_power_off(); 476 + /* or should we just do a: panic(PFX "Temperature overheat trip!\n"); */ 479 477 } 480 478 } 481 479 } else { ··· 488 484 if (temp_panic) { 489 485 printk (KERN_INFO PFX "Temperature overheat trip!\n"); 490 486 kernel_power_off(); 487 + /* or should we just do a: panic(PFX "Temperature overheat trip!\n"); */ 491 488 } 492 489 } 493 490 } ··· 988 983 { 989 984 if (pcwd_private.io_addr) 990 985 pcwatchdog_exit(); 986 + 987 + printk(KERN_INFO PFX "Watchdog Module Unloaded.\n"); 991 988 } 992 989 993 990 module_init(pcwd_init_module);