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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c
index 860339d51d58..10cf0cbc2185 100644
--- a/drivers/net/smc91x.c
+++ b/drivers/net/smc91x.c
@@ -1285,7 +1285,7 @@ static irqreturn_t smc_interrupt(int irq, void *dev_id)
1285 smc_phy_interrupt(dev); 1285 smc_phy_interrupt(dev);
1286 } else if (status & IM_ERCV_INT) { 1286 } else if (status & IM_ERCV_INT) {
1287 SMC_ACK_INT(lp, IM_ERCV_INT); 1287 SMC_ACK_INT(lp, IM_ERCV_INT);
1288 PRINTK("%s: UNSUPPORTED: ERCV INTERRUPT \n", dev->name); 1288 PRINTK("%s: UNSUPPORTED: ERCV INTERRUPT\n", dev->name);
1289 } 1289 }
1290 } while (--timeout); 1290 } while (--timeout);
1291 1291
@@ -1360,7 +1360,7 @@ static void smc_timeout(struct net_device *dev)
1360 schedule_work(&lp->phy_configure); 1360 schedule_work(&lp->phy_configure);
1361 1361
1362 /* We can accept TX packets again */ 1362 /* We can accept TX packets again */
1363 dev->trans_start = jiffies; 1363 dev->trans_start = jiffies; /* prevent tx timeout */
1364 netif_wake_queue(dev); 1364 netif_wake_queue(dev);
1365} 1365}
1366 1366
@@ -1412,7 +1412,7 @@ static void smc_set_multicast_list(struct net_device *dev)
1412 * within that register. 1412 * within that register.
1413 */ 1413 */
1414 else if (!netdev_mc_empty(dev)) { 1414 else if (!netdev_mc_empty(dev)) {
1415 struct dev_mc_list *cur_addr; 1415 struct netdev_hw_addr *ha;
1416 1416
1417 /* table for flipping the order of 3 bits */ 1417 /* table for flipping the order of 3 bits */
1418 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};
@@ -1420,16 +1420,16 @@ static void smc_set_multicast_list(struct net_device *dev)
1420 /* start with a table of all zeros: reject all */ 1420 /* start with a table of all zeros: reject all */
1421 memset(multicast_table, 0, sizeof(multicast_table)); 1421 memset(multicast_table, 0, sizeof(multicast_table));
1422 1422
1423 netdev_for_each_mc_addr(cur_addr, dev) { 1423 netdev_for_each_mc_addr(ha, dev) {
1424 int position; 1424 int position;
1425 1425
1426 /* make sure this is a multicast address - 1426 /* make sure this is a multicast address -
1427 shouldn't this be a given if we have it here ? */ 1427 shouldn't this be a given if we have it here ? */
1428 if (!(*cur_addr->dmi_addr & 1)) 1428 if (!(*ha->addr & 1))
1429 continue; 1429 continue;
1430 1430
1431 /* only use the low order bits */ 1431 /* only use the low order bits */
1432 position = crc32_le(~0, cur_addr->dmi_addr, 6) & 0x3f; 1432 position = crc32_le(~0, ha->addr, 6) & 0x3f;
1433 1433
1434 /* 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 */
1435 multicast_table[invert3[position&7]] |= 1435 multicast_table[invert3[position&7]] |=