patch-2.4.0-test9 linux/drivers/char/pcwd.c

Next file: linux/drivers/char/ppdev.c
Previous file: linux/drivers/char/nwflash.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test8/linux/drivers/char/pcwd.c linux/drivers/char/pcwd.c
@@ -564,11 +564,7 @@
 	&pcwd_fops
 };
  
-#ifdef	MODULE
-int init_module(void)
-#else
-int __init pcwatchdog_init(void)
-#endif
+static int __init pcwatchdog_init(void)
 {
 	int i, found = 0;
 	spin_lock_init(&io_lock);
@@ -644,8 +640,7 @@
 	return 0;
 }
 
-#ifdef	MODULE
-void cleanup_module(void)
+static void __exit pcwatchdog_exit(void)
 {
 	/*  Disable the board  */
 	if (revision == PCWD_REVISION_C) {
@@ -658,4 +653,6 @@
 
 	release_region(current_readport, (revision == PCWD_REVISION_A) ? 2 : 4);
 }
-#endif
+
+module_init(pcwatchdog_init);
+module_exit(pcwatchdog_exit);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)