summaryrefslogtreecommitdiffstats
path: root/drivers/net/ne.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
commit27cfca1ec98e91261b1a5355d10a8996464b63af (patch)
tree8e895a53e372fa682b4c0a585b9377d67ed70d0e /drivers/net/ne.c
parent6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff)
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'drivers/net/ne.c')
-rw-r--r--drivers/net/ne.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/net/ne.c b/drivers/net/ne.c
index efbfc54e4..87b808754 100644
--- a/drivers/net/ne.c
+++ b/drivers/net/ne.c
@@ -72,14 +72,14 @@ static unsigned int netcard_portlist[] __initdata =
#ifdef CONFIG_PCI
/* Ack! People are making PCI ne2000 clones! Oh the horror, the horror... */
-static struct { unsigned short vendor, dev_id;}
+static struct { unsigned short vendor, dev_id; char *name; }
pci_clone_list[] __initdata = {
- {PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8029},
- {PCI_VENDOR_ID_WINBOND2, PCI_DEVICE_ID_WINBOND2_89C940},
- {PCI_VENDOR_ID_COMPEX, PCI_DEVICE_ID_COMPEX_RL2000},
- {PCI_VENDOR_ID_KTI, PCI_DEVICE_ID_KTI_ET32P2},
- {PCI_VENDOR_ID_NETVIN, PCI_DEVICE_ID_NETVIN_NV5000SC},
- {PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C926},
+ {PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8029, "Realtek 8029" },
+ {PCI_VENDOR_ID_WINBOND2, PCI_DEVICE_ID_WINBOND2_89C940, "Winbond 89C940" },
+ {PCI_VENDOR_ID_COMPEX, PCI_DEVICE_ID_COMPEX_RL2000, "Compex ReadyLink 2000" },
+ {PCI_VENDOR_ID_KTI, PCI_DEVICE_ID_KTI_ET32P2, "KTI ET32P2" },
+ {PCI_VENDOR_ID_NETVIN, PCI_DEVICE_ID_NETVIN_NV5000SC, "NetVin NV5000" },
+ {PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C926, "VIA 82C926 Amazon" },
{0,}
};
#endif
@@ -228,9 +228,8 @@ __initfunc(static int ne_probe_pci(struct device *dev))
break; /* Beauty -- got a valid card. */
}
if (pci_irq_line == 0) continue; /* Try next PCI ID */
- printk("ne.c: PCI BIOS reports %s %s at i/o %#x, irq %d.\n",
- pci_strvendor(pci_clone_list[i].vendor),
- pci_strdev(pci_clone_list[i].vendor, pci_clone_list[i].dev_id),
+ printk("ne.c: PCI BIOS reports %s at i/o %#x, irq %d.\n",
+ pci_clone_list[i].name,
pci_ioaddr, pci_irq_line);
if (ne_probe1(dev, pci_ioaddr) != 0) { /* Shouldn't happen. */
printk(KERN_ERR "ne.c: Probe of PCI card at %#x failed.\n", pci_ioaddr);
@@ -783,11 +782,11 @@ cleanup_module(void)
for (this_dev = 0; this_dev < MAX_NE_CARDS; this_dev++) {
struct device *dev = &dev_ne[this_dev];
if (dev->priv != NULL) {
+ unregister_netdev(dev);
kfree(dev->priv);
dev->priv = NULL;
free_irq(dev->irq, dev);
release_region(dev->base_addr, NE_IO_EXTENT);
- unregister_netdev(dev);
}
}
}