aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ucc_geth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ucc_geth.c')
-rw-r--r--drivers/net/ucc_geth.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index a05720289c7e..23a97518bc1f 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -2002,7 +2002,6 @@ static void ucc_geth_set_multi(struct net_device *dev)
2002 struct dev_mc_list *dmi; 2002 struct dev_mc_list *dmi;
2003 struct ucc_fast __iomem *uf_regs; 2003 struct ucc_fast __iomem *uf_regs;
2004 struct ucc_geth_82xx_address_filtering_pram __iomem *p_82xx_addr_filt; 2004 struct ucc_geth_82xx_address_filtering_pram __iomem *p_82xx_addr_filt;
2005 int i;
2006 2005
2007 ugeth = netdev_priv(dev); 2006 ugeth = netdev_priv(dev);
2008 2007
@@ -2029,11 +2028,7 @@ static void ucc_geth_set_multi(struct net_device *dev)
2029 out_be32(&p_82xx_addr_filt->gaddr_h, 0x0); 2028 out_be32(&p_82xx_addr_filt->gaddr_h, 0x0);
2030 out_be32(&p_82xx_addr_filt->gaddr_l, 0x0); 2029 out_be32(&p_82xx_addr_filt->gaddr_l, 0x0);
2031 2030
2032 dmi = dev->mc_list; 2031 netdev_for_each_mc_addr(dmi, dev) {
2033
2034 for (i = 0; i < netdev_mc_count(dev);
2035 i++, dmi = dmi->next) {
2036
2037 /* Only support group multicast for now. 2032 /* Only support group multicast for now.
2038 */ 2033 */
2039 if (!(dmi->dmi_addr[0] & 1)) 2034 if (!(dmi->dmi_addr[0] & 1))