diff options
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r-- | drivers/net/niu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 0e260cfbff7b..af9a8647c7e8 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -6372,7 +6372,7 @@ static void niu_set_rx_mode(struct net_device *dev) | |||
6372 | if ((dev->flags & IFF_ALLMULTI) || (dev->mc_count > 0)) | 6372 | if ((dev->flags & IFF_ALLMULTI) || (dev->mc_count > 0)) |
6373 | np->flags |= NIU_FLAGS_MCAST; | 6373 | np->flags |= NIU_FLAGS_MCAST; |
6374 | 6374 | ||
6375 | alt_cnt = dev->uc.count; | 6375 | alt_cnt = netdev_uc_count(dev); |
6376 | if (alt_cnt > niu_num_alt_addr(np)) { | 6376 | if (alt_cnt > niu_num_alt_addr(np)) { |
6377 | alt_cnt = 0; | 6377 | alt_cnt = 0; |
6378 | np->flags |= NIU_FLAGS_PROMISC; | 6378 | np->flags |= NIU_FLAGS_PROMISC; |
@@ -6381,7 +6381,7 @@ static void niu_set_rx_mode(struct net_device *dev) | |||
6381 | if (alt_cnt) { | 6381 | if (alt_cnt) { |
6382 | int index = 0; | 6382 | int index = 0; |
6383 | 6383 | ||
6384 | list_for_each_entry(ha, &dev->uc.list, list) { | 6384 | netdev_for_each_uc_addr(ha, dev) { |
6385 | err = niu_set_alt_mac(np, index, ha->addr); | 6385 | err = niu_set_alt_mac(np, index, ha->addr); |
6386 | if (err) | 6386 | if (err) |
6387 | printk(KERN_WARNING PFX "%s: Error %d " | 6387 | printk(KERN_WARNING PFX "%s: Error %d " |