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

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

diff -u --recursive --new-file v1.3.38/linux/drivers/net/wavelan.c linux/drivers/net/wavelan.c
@@ -1264,9 +1264,7 @@
 		return -EAGAIN;
 	}
 
-#if	defined(MODULE)
 	MOD_INC_USE_COUNT;
-#endif	/* defined(MODULE) */
 
 	if (wavelan_debug > 0)
 		printk("%s: <-wavelan_open(): 0\n", dev->name);
@@ -1992,9 +1990,7 @@
 	 */
 	release_region(ioaddr, sizeof(ha_t));
 
-#if	defined(MODULE)
 	MOD_DEC_USE_COUNT;
-#endif	/* defined(MODULE) */
 
 	if (wavelan_debug > 0)
 		printk("%s: <-wavelan_close(): 0\n", dev->name);
@@ -2179,8 +2175,8 @@
 	0, 0, 0, NULL, wavelan_probe
 };
 
-int io = 0x390; /* Default from above.. */
-int irq = 0;
+static int io = 0x390; /* Default from above.. */
+static int irq = 0;
 
 int
 init_module(void)
@@ -2196,15 +2192,10 @@
 void
 cleanup_module(void)
 {
-	if (MOD_IN_USE)
-		printk("wavelan: device busy, remove delayed\n");
-	else
-	{
-		proc_net_unregister(PROC_NET_WAVELAN);
-		unregister_netdev(&dev_wavelan);
-		kfree_s(dev_wavelan.priv, sizeof(struct net_local));
-		dev_wavelan.priv = NULL;
-	}
+	proc_net_unregister(PROC_NET_WAVELAN);
+	unregister_netdev(&dev_wavelan);
+	kfree_s(dev_wavelan.priv, sizeof(struct net_local));
+	dev_wavelan.priv = NULL;
 }
 #endif	/* defined(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