patch-1.3.39 linux/drivers/net/tulip.c
Next file: linux/drivers/net/tunnel.c
Previous file: linux/drivers/net/smc-ultra.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Thu Nov 9 08:24:07 1995
- Orig file:
v1.3.38/linux/drivers/net/tulip.c
- Orig date:
Wed Nov 8 07:11:33 1995
diff -u --recursive --new-file v1.3.38/linux/drivers/net/tulip.c linux/drivers/net/tulip.c
@@ -344,9 +344,7 @@
printk("%s: Done tulip_open(), CSR0 %8.8x, CSR13 %8.8x.\n",
dev->name, inl(ioaddr + CSR0), inl(ioaddr + CSR13));
}
-#ifdef MODULE
MOD_INC_USE_COUNT;
-#endif
return 0;
}
@@ -660,9 +658,7 @@
free_irq(dev->irq);
irq2dev_map[dev->irq] = 0;
-#ifdef MODULE
MOD_DEC_USE_COUNT;
-#endif
return 0;
}
@@ -745,8 +741,8 @@
0, 0, 0, NULL, tulip_probe
};
-int io = 0;
-int irq = 0;
+static int io = 0;
+static int irq = 0;
int init_module(void)
{
@@ -768,12 +764,7 @@
void
cleanup_module(void)
{
- if (MOD_IN_USE)
- printk("tulip: device busy, remove delayed\n");
- else
- {
- unregister_netdev(&dev_tulip);
- }
+ unregister_netdev(&dev_tulip);
}
#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