aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dm9000.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/dm9000.c')
-rw-r--r--drivers/net/dm9000.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index 1c67f1138ca7..a818ea998bbe 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -33,6 +33,7 @@
33#include <linux/delay.h> 33#include <linux/delay.h>
34#include <linux/platform_device.h> 34#include <linux/platform_device.h>
35#include <linux/irq.h> 35#include <linux/irq.h>
36#include <linux/slab.h>
36 37
37#include <asm/delay.h> 38#include <asm/delay.h>
38#include <asm/irq.h> 39#include <asm/irq.h>
@@ -724,7 +725,7 @@ static void
724dm9000_hash_table(struct net_device *dev) 725dm9000_hash_table(struct net_device *dev)
725{ 726{
726 board_info_t *db = netdev_priv(dev); 727 board_info_t *db = netdev_priv(dev);
727 struct dev_mc_list *mcptr; 728 struct netdev_hw_addr *ha;
728 int i, oft; 729 int i, oft;
729 u32 hash_val; 730 u32 hash_val;
730 u16 hash_table[4]; 731 u16 hash_table[4];
@@ -752,8 +753,8 @@ dm9000_hash_table(struct net_device *dev)
752 rcr |= RCR_ALL; 753 rcr |= RCR_ALL;
753 754
754 /* the multicast address in Hash Table : 64 bits */ 755 /* the multicast address in Hash Table : 64 bits */
755 netdev_for_each_mc_addr(mcptr, dev) { 756 netdev_for_each_mc_addr(ha, dev) {
756 hash_val = ether_crc_le(6, mcptr->dmi_addr) & 0x3f; 757 hash_val = ether_crc_le(6, ha->addr) & 0x3f;
757 hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16); 758 hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16);
758 } 759 }
759 760