diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-02-22 04:22:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-22 18:45:52 -0500 |
commit | 48e2f183cb1709600012265a2e723f45a350d5fe (patch) | |
tree | 608368bda6f159342c307deca3b03998d25434c8 /drivers/net/davinci_emac.c | |
parent | 7a81e9f3ca712db82344ea3ab2a5879241f59c48 (diff) |
net: convert multiple drivers to use netdev_for_each_mc_addr, part4
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/davinci_emac.c')
-rw-r--r-- | drivers/net/davinci_emac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index d1e03b5984c0..3f5db83c7cbb 100644 --- a/drivers/net/davinci_emac.c +++ b/drivers/net/davinci_emac.c | |||
@@ -965,10 +965,9 @@ static void emac_dev_mcast_set(struct net_device *ndev) | |||
965 | mbp_enable = (mbp_enable | EMAC_MBP_RXMCAST); | 965 | mbp_enable = (mbp_enable | EMAC_MBP_RXMCAST); |
966 | emac_add_mcast(priv, EMAC_ALL_MULTI_CLR, NULL); | 966 | emac_add_mcast(priv, EMAC_ALL_MULTI_CLR, NULL); |
967 | /* program multicast address list into EMAC hardware */ | 967 | /* program multicast address list into EMAC hardware */ |
968 | for (mc_ptr = ndev->mc_list; mc_ptr; | 968 | netdev_for_each_mc_addr(mc_ptr, ndev) { |
969 | mc_ptr = mc_ptr->next) { | ||
970 | emac_add_mcast(priv, EMAC_MULTICAST_ADD, | 969 | emac_add_mcast(priv, EMAC_MULTICAST_ADD, |
971 | (u8 *)mc_ptr->dmi_addr); | 970 | (u8 *) mc_ptr->dmi_addr); |
972 | } | 971 | } |
973 | } else { | 972 | } else { |
974 | mbp_enable = (mbp_enable & ~EMAC_MBP_RXMCAST); | 973 | mbp_enable = (mbp_enable & ~EMAC_MBP_RXMCAST); |