aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethoc.c')
-rw-r--r--drivers/net/ethoc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c
index a8d92503226e..6bd03c8b8886 100644
--- a/drivers/net/ethoc.c
+++ b/drivers/net/ethoc.c
@@ -756,7 +756,7 @@ static void ethoc_set_multicast_list(struct net_device *dev)
756{ 756{
757 struct ethoc *priv = netdev_priv(dev); 757 struct ethoc *priv = netdev_priv(dev);
758 u32 mode = ethoc_read(priv, MODER); 758 u32 mode = ethoc_read(priv, MODER);
759 struct dev_mc_list *mc; 759 struct netdev_hw_addr *ha;
760 u32 hash[2] = { 0, 0 }; 760 u32 hash[2] = { 0, 0 };
761 761
762 /* set loopback mode if requested */ 762 /* set loopback mode if requested */
@@ -784,8 +784,8 @@ static void ethoc_set_multicast_list(struct net_device *dev)
784 hash[0] = 0xffffffff; 784 hash[0] = 0xffffffff;
785 hash[1] = 0xffffffff; 785 hash[1] = 0xffffffff;
786 } else { 786 } else {
787 netdev_for_each_mc_addr(mc, dev) { 787 netdev_for_each_mc_addr(ha, dev) {
788 u32 crc = ether_crc(ETH_ALEN, mc->dmi_addr); 788 u32 crc = ether_crc(ETH_ALEN, ha->addr);
789 int bit = (crc >> 26) & 0x3f; 789 int bit = (crc >> 26) & 0x3f;
790 hash[bit >> 5] |= 1 << (bit & 0x1f); 790 hash[bit >> 5] |= 1 << (bit & 0x1f);
791 } 791 }