diff options
Diffstat (limited to 'drivers/net/b44.c')
-rw-r--r-- | drivers/net/b44.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 4869adb69586..9091c6574b1c 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -102,7 +102,7 @@ MODULE_PARM_DESC(b44_debug, "B44 bitmapped debugging message enable value"); | |||
102 | 102 | ||
103 | 103 | ||
104 | #ifdef CONFIG_B44_PCI | 104 | #ifdef CONFIG_B44_PCI |
105 | static const struct pci_device_id b44_pci_tbl[] = { | 105 | static DEFINE_PCI_DEVICE_TABLE(b44_pci_tbl) = { |
106 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401) }, | 106 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401) }, |
107 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401B0) }, | 107 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401B0) }, |
108 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401B1) }, | 108 | { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BCM4401B1) }, |
@@ -1691,7 +1691,7 @@ static int __b44_load_mcast(struct b44 *bp, struct net_device *dev) | |||
1691 | struct dev_mc_list *mclist; | 1691 | struct dev_mc_list *mclist; |
1692 | int i, num_ents; | 1692 | int i, num_ents; |
1693 | 1693 | ||
1694 | num_ents = min_t(int, dev->mc_count, B44_MCAST_TABLE_SIZE); | 1694 | num_ents = min_t(int, netdev_mc_count(dev), B44_MCAST_TABLE_SIZE); |
1695 | mclist = dev->mc_list; | 1695 | mclist = dev->mc_list; |
1696 | for (i = 0; mclist && i < num_ents; i++, mclist = mclist->next) { | 1696 | for (i = 0; mclist && i < num_ents; i++, mclist = mclist->next) { |
1697 | __b44_cam_write(bp, mclist->dmi_addr, i + 1); | 1697 | __b44_cam_write(bp, mclist->dmi_addr, i + 1); |
@@ -1716,7 +1716,7 @@ static void __b44_set_rx_mode(struct net_device *dev) | |||
1716 | __b44_set_mac_addr(bp); | 1716 | __b44_set_mac_addr(bp); |
1717 | 1717 | ||
1718 | if ((dev->flags & IFF_ALLMULTI) || | 1718 | if ((dev->flags & IFF_ALLMULTI) || |
1719 | (dev->mc_count > B44_MCAST_TABLE_SIZE)) | 1719 | (netdev_mc_count(dev) > B44_MCAST_TABLE_SIZE)) |
1720 | val |= RXCONFIG_ALLMULTI; | 1720 | val |= RXCONFIG_ALLMULTI; |
1721 | else | 1721 | else |
1722 | i = __b44_load_mcast(bp, dev); | 1722 | i = __b44_load_mcast(bp, dev); |