patch-2.4.0-test2 linux/drivers/net/pcnet32.c
Next file: linux/drivers/net/plip.c
Previous file: linux/drivers/net/pcmcia/Config.in
Back to the patch index
Back to the overall index
- Lines: 50
- Date:
Mon Jun 19 13:30:56 2000
- Orig file:
v2.4.0-test1/linux/drivers/net/pcnet32.c
- Orig date:
Tue May 23 15:31:35 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/pcnet32.c linux/drivers/net/pcnet32.c
@@ -311,21 +311,6 @@
int (*probe1) (unsigned long, unsigned char, int, int, struct pci_dev *);
};
-static struct pcnet32_pci_id_info pcnet32_tbl[] = {
- { "AMD PCnetPCI series",
- PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE, 0, 0,
- PCI_USES_IO|PCI_USES_MASTER, PCNET32_TOTAL_SIZE,
- pcnet32_probe1},
- { "AMD PCnetPCI series (IBM)",
- PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE, 0x1014, 0x2000,
- PCI_USES_IO|PCI_USES_MASTER, PCNET32_TOTAL_SIZE,
- pcnet32_probe1},
- { "AMD PCnetHome series",
- PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_PCNETHOME, 0, 0,
- PCI_USES_IO|PCI_USES_MASTER, PCNET32_TOTAL_SIZE,
- pcnet32_probe1},
- {0,}
-};
/*
* PCI device identifiers for "new style" Linux PCI Device Drivers
@@ -751,7 +736,7 @@
}
if (pcnet32_debug > 0)
- printk(KERN_INFO, version);
+ printk(KERN_INFO "%s", version);
/* The PCNET32-specific entries in the device structure. */
dev->open = &pcnet32_open;
@@ -1257,8 +1242,7 @@
lp->stats.rx_errors++;
} else {
int rx_in_place = 0;
- dma_addr_t rx_dma_addr = lp->rx_dma_addr[entry];
-
+
if (pkt_len > rx_copybreak) {
struct sk_buff *newskb;
@@ -1524,7 +1508,7 @@
/* find the PCI devices */
#define USE_PCI_REGISTER_DRIVER
#ifdef USE_PCI_REGISTER_DRIVER
- if (err = pci_module_init(&pcnet32_driver) < 0 )
+ if ((err = pci_module_init(&pcnet32_driver)) < 0 )
return err;
#else
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)