aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fealnx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/fealnx.c')
-rw-r--r--drivers/net/fealnx.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/fealnx.c b/drivers/net/fealnx.c
index 9d5ad08a119f..51b738dd6547 100644
--- a/drivers/net/fealnx.c
+++ b/drivers/net/fealnx.c
@@ -74,7 +74,6 @@ static int full_duplex[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 };
74#include <linux/timer.h> 74#include <linux/timer.h>
75#include <linux/errno.h> 75#include <linux/errno.h>
76#include <linux/ioport.h> 76#include <linux/ioport.h>
77#include <linux/slab.h>
78#include <linux/interrupt.h> 77#include <linux/interrupt.h>
79#include <linux/pci.h> 78#include <linux/pci.h>
80#include <linux/netdevice.h> 79#include <linux/netdevice.h>
@@ -1792,12 +1791,12 @@ static void __set_rx_mode(struct net_device *dev)
1792 memset(mc_filter, 0xff, sizeof(mc_filter)); 1791 memset(mc_filter, 0xff, sizeof(mc_filter));
1793 rx_mode = CR_W_AB | CR_W_AM; 1792 rx_mode = CR_W_AB | CR_W_AM;
1794 } else { 1793 } else {
1795 struct dev_mc_list *mclist; 1794 struct netdev_hw_addr *ha;
1796 1795
1797 memset(mc_filter, 0, sizeof(mc_filter)); 1796 memset(mc_filter, 0, sizeof(mc_filter));
1798 netdev_for_each_mc_addr(mclist, dev) { 1797 netdev_for_each_mc_addr(ha, dev) {
1799 unsigned int bit; 1798 unsigned int bit;
1800 bit = (ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26) ^ 0x3F; 1799 bit = (ether_crc(ETH_ALEN, ha->addr) >> 26) ^ 0x3F;
1801 mc_filter[bit >> 5] |= (1 << bit); 1800 mc_filter[bit >> 5] |= (1 << bit);
1802 } 1801 }
1803 rx_mode = CR_W_AB | CR_W_AM; 1802 rx_mode = CR_W_AB | CR_W_AM;