diff options
Diffstat (limited to 'drivers/net/3c59x.c')
-rw-r--r-- | drivers/net/3c59x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index 39db0e96815d..f965431f4924 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c | |||
@@ -375,7 +375,7 @@ static struct vortex_chip_info { | |||
375 | }; | 375 | }; |
376 | 376 | ||
377 | 377 | ||
378 | static struct pci_device_id vortex_pci_tbl[] = { | 378 | static DEFINE_PCI_DEVICE_TABLE(vortex_pci_tbl) = { |
379 | { 0x10B7, 0x5900, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C590 }, | 379 | { 0x10B7, 0x5900, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C590 }, |
380 | { 0x10B7, 0x5920, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C592 }, | 380 | { 0x10B7, 0x5920, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C592 }, |
381 | { 0x10B7, 0x5970, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C597 }, | 381 | { 0x10B7, 0x5970, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CH_3C597 }, |
@@ -2970,7 +2970,7 @@ static void set_rx_mode(struct net_device *dev) | |||
2970 | if (vortex_debug > 3) | 2970 | if (vortex_debug > 3) |
2971 | pr_notice("%s: Setting promiscuous mode.\n", dev->name); | 2971 | pr_notice("%s: Setting promiscuous mode.\n", dev->name); |
2972 | new_mode = SetRxFilter|RxStation|RxMulticast|RxBroadcast|RxProm; | 2972 | new_mode = SetRxFilter|RxStation|RxMulticast|RxBroadcast|RxProm; |
2973 | } else if ((dev->mc_list) || (dev->flags & IFF_ALLMULTI)) { | 2973 | } else if (!netdev_mc_empty(dev) || dev->flags & IFF_ALLMULTI) { |
2974 | new_mode = SetRxFilter|RxStation|RxMulticast|RxBroadcast; | 2974 | new_mode = SetRxFilter|RxStation|RxMulticast|RxBroadcast; |
2975 | } else | 2975 | } else |
2976 | new_mode = SetRxFilter | RxStation | RxBroadcast; | 2976 | new_mode = SetRxFilter | RxStation | RxBroadcast; |