aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/smc91x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/smc91x.c')
-rw-r--r--drivers/net/smc91x.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c
index fc1b5a1a3583..682bc4fe604f 100644
--- a/drivers/net/smc91x.c
+++ b/drivers/net/smc91x.c
@@ -70,7 +70,6 @@ static const char version[] =
70#include <linux/module.h> 70#include <linux/module.h>
71#include <linux/kernel.h> 71#include <linux/kernel.h>
72#include <linux/sched.h> 72#include <linux/sched.h>
73#include <linux/slab.h>
74#include <linux/delay.h> 73#include <linux/delay.h>
75#include <linux/interrupt.h> 74#include <linux/interrupt.h>
76#include <linux/errno.h> 75#include <linux/errno.h>
@@ -1286,7 +1285,7 @@ static irqreturn_t smc_interrupt(int irq, void *dev_id)
1286 smc_phy_interrupt(dev); 1285 smc_phy_interrupt(dev);
1287 } else if (status & IM_ERCV_INT) { 1286 } else if (status & IM_ERCV_INT) {
1288 SMC_ACK_INT(lp, IM_ERCV_INT); 1287 SMC_ACK_INT(lp, IM_ERCV_INT);
1289 PRINTK("%s: UNSUPPORTED: ERCV INTERRUPT \n", dev->name); 1288 PRINTK("%s: UNSUPPORTED: ERCV INTERRUPT\n", dev->name);
1290 } 1289 }
1291 } while (--timeout); 1290 } while (--timeout);
1292 1291
@@ -1413,7 +1412,7 @@ static void smc_set_multicast_list(struct net_device *dev)
1413 * within that register. 1412 * within that register.
1414 */ 1413 */
1415 else if (!netdev_mc_empty(dev)) { 1414 else if (!netdev_mc_empty(dev)) {
1416 struct dev_mc_list *cur_addr; 1415 struct netdev_hw_addr *ha;
1417 1416
1418 /* table for flipping the order of 3 bits */ 1417 /* table for flipping the order of 3 bits */
1419 static const unsigned char invert3[] = {0, 4, 2, 6, 1, 5, 3, 7}; 1418 static const unsigned char invert3[] = {0, 4, 2, 6, 1, 5, 3, 7};
@@ -1421,16 +1420,16 @@ static void smc_set_multicast_list(struct net_device *dev)
1421 /* start with a table of all zeros: reject all */ 1420 /* start with a table of all zeros: reject all */
1422 memset(multicast_table, 0, sizeof(multicast_table)); 1421 memset(multicast_table, 0, sizeof(multicast_table));
1423 1422
1424 netdev_for_each_mc_addr(cur_addr, dev) { 1423 netdev_for_each_mc_addr(ha, dev) {
1425 int position; 1424 int position;
1426 1425
1427 /* make sure this is a multicast address - 1426 /* make sure this is a multicast address -
1428 shouldn't this be a given if we have it here ? */ 1427 shouldn't this be a given if we have it here ? */
1429 if (!(*cur_addr->dmi_addr & 1)) 1428 if (!(*ha->addr & 1))
1430 continue; 1429 continue;
1431 1430
1432 /* only use the low order bits */ 1431 /* only use the low order bits */
1433 position = crc32_le(~0, cur_addr->dmi_addr, 6) & 0x3f; 1432 position = crc32_le(~0, ha->addr, 6) & 0x3f;
1434 1433
1435 /* do some messy swapping to put the bit in the right spot */ 1434 /* do some messy swapping to put the bit in the right spot */
1436 multicast_table[invert3[position&7]] |= 1435 multicast_table[invert3[position&7]] |=