diff options
Diffstat (limited to 'drivers/net/bmac.c')
-rw-r--r-- | drivers/net/bmac.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/bmac.c b/drivers/net/bmac.c index 598b007f1991..44ceecf9d103 100644 --- a/drivers/net/bmac.c +++ b/drivers/net/bmac.c | |||
@@ -972,7 +972,7 @@ bmac_remove_multi(struct net_device *dev, | |||
972 | */ | 972 | */ |
973 | static void bmac_set_multicast(struct net_device *dev) | 973 | static void bmac_set_multicast(struct net_device *dev) |
974 | { | 974 | { |
975 | struct dev_mc_list *dmi; | 975 | struct netdev_hw_addr *ha; |
976 | struct bmac_data *bp = netdev_priv(dev); | 976 | struct bmac_data *bp = netdev_priv(dev); |
977 | int num_addrs = netdev_mc_count(dev); | 977 | int num_addrs = netdev_mc_count(dev); |
978 | unsigned short rx_cfg; | 978 | unsigned short rx_cfg; |
@@ -1001,8 +1001,8 @@ static void bmac_set_multicast(struct net_device *dev) | |||
1001 | rx_cfg = bmac_rx_on(dev, 0, 0); | 1001 | rx_cfg = bmac_rx_on(dev, 0, 0); |
1002 | XXDEBUG(("bmac: multi disabled, rx_cfg=%#08x\n", rx_cfg)); | 1002 | XXDEBUG(("bmac: multi disabled, rx_cfg=%#08x\n", rx_cfg)); |
1003 | } else { | 1003 | } else { |
1004 | netdev_for_each_mc_addr(dmi, dev) | 1004 | netdev_for_each_mc_addr(ha, dev) |
1005 | bmac_addhash(bp, dmi->dmi_addr); | 1005 | bmac_addhash(bp, ha->addr); |
1006 | bmac_update_hash_table_mask(dev, bp); | 1006 | bmac_update_hash_table_mask(dev, bp); |
1007 | rx_cfg = bmac_rx_on(dev, 1, 0); | 1007 | rx_cfg = bmac_rx_on(dev, 1, 0); |
1008 | XXDEBUG(("bmac: multi enabled, rx_cfg=%#08x\n", rx_cfg)); | 1008 | XXDEBUG(("bmac: multi enabled, rx_cfg=%#08x\n", rx_cfg)); |
@@ -1016,7 +1016,7 @@ static void bmac_set_multicast(struct net_device *dev) | |||
1016 | 1016 | ||
1017 | static void bmac_set_multicast(struct net_device *dev) | 1017 | static void bmac_set_multicast(struct net_device *dev) |
1018 | { | 1018 | { |
1019 | struct dev_mc_list *dmi; | 1019 | struct netdev_hw_addr *ha; |
1020 | char *addrs; | 1020 | char *addrs; |
1021 | int i; | 1021 | int i; |
1022 | unsigned short rx_cfg; | 1022 | unsigned short rx_cfg; |
@@ -1040,8 +1040,8 @@ static void bmac_set_multicast(struct net_device *dev) | |||
1040 | 1040 | ||
1041 | for(i = 0; i < 4; i++) hash_table[i] = 0; | 1041 | for(i = 0; i < 4; i++) hash_table[i] = 0; |
1042 | 1042 | ||
1043 | netdev_for_each_mc_addr(dmi, dev) { | 1043 | netdev_for_each_mc_addr(ha, dev) { |
1044 | addrs = dmi->dmi_addr; | 1044 | addrs = ha->addr; |
1045 | 1045 | ||
1046 | if(!(*addrs & 1)) | 1046 | if(!(*addrs & 1)) |
1047 | continue; | 1047 | continue; |