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

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

diff -u --recursive --new-file v1.3.38/linux/drivers/net/ne.c linux/drivers/net/ne.c
@@ -30,10 +30,7 @@
     "ne.c:v1.10 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)\n";
 
 
-#ifdef MODULE
 #include <linux/module.h>
-#include <linux/version.h>
-#endif
 
 #include <linux/kernel.h>
 #include <linux/sched.h>
@@ -572,7 +569,6 @@
 }
 
 #ifdef MODULE
-char kernel_version[] = UTS_RELEASE;
 static char devicename[9] = { 0, };
 static struct device dev_ne2000 = {
 	devicename, /* device name is inserted by linux/drivers/net/net_init.c */
@@ -580,8 +576,8 @@
 	0, 0,
 	0, 0, 0, NULL, ne_probe };
 
-int io = 0x300;
-int irq = 0;
+static int io = 0x300;
+static int irq = 0;
 
 int init_module(void)
 {
@@ -597,16 +593,11 @@
 void
 cleanup_module(void)
 {
-	if (MOD_IN_USE)
-		printk("ne2000: device busy, remove delayed\n");
-	else
-	{
-		unregister_netdev(&dev_ne2000);
-
-		/* If we don't do this, we can't re-insmod it later. */
-		free_irq(dev_ne2000.irq);
-		release_region(dev_ne2000.base_addr, NE_IO_EXTENT);
-	}
+	unregister_netdev(&dev_ne2000);
+
+	/* If we don't do this, we can't re-insmod it later. */
+	free_irq(dev_ne2000.irq);
+	release_region(dev_ne2000.base_addr, NE_IO_EXTENT);
 }
 #endif /* MODULE */
 

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