diff options
Diffstat (limited to 'drivers/net/pcnet32.c')
-rw-r--r-- | drivers/net/pcnet32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index e154677ff706..3522794550dd 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c | |||
@@ -59,7 +59,7 @@ static const char *const version = | |||
59 | /* | 59 | /* |
60 | * PCI device identifiers for "new style" Linux PCI Device Drivers | 60 | * PCI device identifiers for "new style" Linux PCI Device Drivers |
61 | */ | 61 | */ |
62 | static struct pci_device_id pcnet32_pci_tbl[] = { | 62 | static DEFINE_PCI_DEVICE_TABLE(pcnet32_pci_tbl) = { |
63 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE_HOME), }, | 63 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE_HOME), }, |
64 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE), }, | 64 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE), }, |
65 | 65 | ||
@@ -2698,7 +2698,7 @@ static void pcnet32_load_multicast(struct net_device *dev) | |||
2698 | ib->filter[1] = 0; | 2698 | ib->filter[1] = 0; |
2699 | 2699 | ||
2700 | /* Add addresses */ | 2700 | /* Add addresses */ |
2701 | for (i = 0; i < dev->mc_count; i++) { | 2701 | for (i = 0; i < netdev_mc_count(dev); i++) { |
2702 | addrs = dmi->dmi_addr; | 2702 | addrs = dmi->dmi_addr; |
2703 | dmi = dmi->next; | 2703 | dmi = dmi->next; |
2704 | 2704 | ||