patch-1.3.39 linux/drivers/net/de600.c

Next file: linux/drivers/net/de620.c
Previous file: linux/drivers/net/de4x5.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.38/linux/drivers/net/de600.c linux/drivers/net/de600.c
@@ -90,10 +90,7 @@
 #endif
 unsigned int de600_debug = DE600_DEBUG;
 
-#ifdef MODULE
 #include <linux/module.h>
-#include <linux/version.h>
-#endif
 
 #include <linux/kernel.h>
 #include <linux/sched.h>
@@ -345,9 +342,7 @@
 	}
 	irq2dev_map[DE600_IRQ] = dev;
 
-#ifdef MODULE
 	MOD_INC_USE_COUNT;
-#endif
 	dev->start = 1;
 	if (adapter_init(dev)) {
 		return 1;
@@ -373,9 +368,7 @@
 		free_irq(DE600_IRQ);
 		irq2dev_map[DE600_IRQ] = NULL;
 		dev->start = 0;
-#ifdef MODULE
 		MOD_DEC_USE_COUNT;
-#endif
 	}
 	return 0;
 }
@@ -832,7 +825,6 @@
 #endif
 
 #ifdef MODULE
-char kernel_version[] = UTS_RELEASE;
 static char nullname[8];
 static struct device de600_dev = {
 	nullname, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, de600_probe };

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this