patch-2.4.11-dontuse linux/drivers/net/tlan.c
Next file: linux/drivers/net/tokenring/lanstreamer.c
Previous file: linux/drivers/net/sunhme.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Sun Sep 30 12:26:08 2001
- Orig file:
v2.4.10/linux/drivers/net/tlan.c
- Orig date:
Tue Jul 3 17:08:20 2001
diff -u --recursive --new-file v2.4.10/linux/drivers/net/tlan.c linux/drivers/net/tlan.c
@@ -190,6 +190,8 @@
MODULE_AUTHOR("Maintainer: Torben Mathiasen <torben.mathiasen@compaq.com>");
MODULE_DESCRIPTION("Driver for TI ThunderLAN based ethernet PCI adapters");
+MODULE_LICENSE("GPL");
+
MODULE_PARM(aui, "1-" __MODULE_STRING(MAX_TLAN_BOARDS) "i");
MODULE_PARM(duplex, "1-" __MODULE_STRING(MAX_TLAN_BOARDS) "i");
MODULE_PARM(speed, "1-" __MODULE_STRING(MAX_TLAN_BOARDS) "i");
@@ -452,7 +454,7 @@
/* Use new style PCI probing. Now the kernel will
do most of this for us */
- pci_module_init(&tlan_driver);
+ pci_register_driver(&tlan_driver);
TLAN_DBG(TLAN_DEBUG_PROBE, "Starting EISA Probe....\n");
TLan_EisaProbe();
@@ -462,6 +464,7 @@
tlan_have_pci, tlan_have_eisa);
if (TLanDevicesInstalled == 0) {
+ pci_unregister_driver(&tlan_driver);
kfree(TLanPadBuffer);
return -ENODEV;
}
@@ -643,8 +646,7 @@
static void __exit tlan_exit(void)
{
- if (tlan_have_pci)
- pci_unregister_driver(&tlan_driver);
+ pci_unregister_driver(&tlan_driver);
if (tlan_have_eisa)
TLan_Eisa_Cleanup();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)