aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tlan.c')
-rw-r--r--drivers/net/tlan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/tlan.c b/drivers/net/tlan.c
index 05ea30a94e89..8ffec22b74bf 100644
--- a/drivers/net/tlan.c
+++ b/drivers/net/tlan.c
@@ -1314,7 +1314,7 @@ static struct net_device_stats *TLan_GetStats( struct net_device *dev )
1314 1314
1315static void TLan_SetMulticastList( struct net_device *dev ) 1315static void TLan_SetMulticastList( struct net_device *dev )
1316{ 1316{
1317 struct dev_mc_list *dmi; 1317 struct netdev_hw_addr *ha;
1318 u32 hash1 = 0; 1318 u32 hash1 = 0;
1319 u32 hash2 = 0; 1319 u32 hash2 = 0;
1320 int i; 1320 int i;
@@ -1336,12 +1336,12 @@ static void TLan_SetMulticastList( struct net_device *dev )
1336 TLan_DioWrite32( dev->base_addr, TLAN_HASH_2, 0xFFFFFFFF ); 1336 TLan_DioWrite32( dev->base_addr, TLAN_HASH_2, 0xFFFFFFFF );
1337 } else { 1337 } else {
1338 i = 0; 1338 i = 0;
1339 netdev_for_each_mc_addr(dmi, dev) { 1339 netdev_for_each_mc_addr(ha, dev) {
1340 if ( i < 3 ) { 1340 if ( i < 3 ) {
1341 TLan_SetMac( dev, i + 1, 1341 TLan_SetMac( dev, i + 1,
1342 (char *) &dmi->dmi_addr ); 1342 (char *) &ha->addr);
1343 } else { 1343 } else {
1344 offset = TLan_HashFunc( (u8 *) &dmi->dmi_addr ); 1344 offset = TLan_HashFunc((u8 *)&ha->addr);
1345 if ( offset < 32 ) 1345 if ( offset < 32 )
1346 hash1 |= ( 1 << offset ); 1346 hash1 |= ( 1 << offset );
1347 else 1347 else