diff options
Diffstat (limited to 'drivers/net/smsc911x.c')
-rw-r--r-- | drivers/net/smsc911x.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c index 4fd1d8b38788..89f35f94f720 100644 --- a/drivers/net/smsc911x.c +++ b/drivers/net/smsc911x.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <linux/netdevice.h> | 41 | #include <linux/netdevice.h> |
42 | #include <linux/platform_device.h> | 42 | #include <linux/platform_device.h> |
43 | #include <linux/sched.h> | 43 | #include <linux/sched.h> |
44 | #include <linux/slab.h> | ||
45 | #include <linux/timer.h> | 44 | #include <linux/timer.h> |
46 | #include <linux/bug.h> | 45 | #include <linux/bug.h> |
47 | #include <linux/bitops.h> | 46 | #include <linux/bitops.h> |
@@ -1336,7 +1335,6 @@ static int smsc911x_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1336 | smsc911x_tx_writefifo(pdata, (unsigned int *)bufp, wrsz); | 1335 | smsc911x_tx_writefifo(pdata, (unsigned int *)bufp, wrsz); |
1337 | freespace -= (skb->len + 32); | 1336 | freespace -= (skb->len + 32); |
1338 | dev_kfree_skb(skb); | 1337 | dev_kfree_skb(skb); |
1339 | dev->trans_start = jiffies; | ||
1340 | 1338 | ||
1341 | if (unlikely(smsc911x_tx_get_txstatcount(pdata) >= 30)) | 1339 | if (unlikely(smsc911x_tx_get_txstatcount(pdata) >= 30)) |
1342 | smsc911x_tx_update_txcounters(dev); | 1340 | smsc911x_tx_update_txcounters(dev); |
@@ -1383,13 +1381,13 @@ static void smsc911x_set_multicast_list(struct net_device *dev) | |||
1383 | /* Enabling specific multicast addresses */ | 1381 | /* Enabling specific multicast addresses */ |
1384 | unsigned int hash_high = 0; | 1382 | unsigned int hash_high = 0; |
1385 | unsigned int hash_low = 0; | 1383 | unsigned int hash_low = 0; |
1386 | struct dev_mc_list *mc_list; | 1384 | struct netdev_hw_addr *ha; |
1387 | 1385 | ||
1388 | pdata->set_bits_mask = MAC_CR_HPFILT_; | 1386 | pdata->set_bits_mask = MAC_CR_HPFILT_; |
1389 | pdata->clear_bits_mask = (MAC_CR_PRMS_ | MAC_CR_MCPAS_); | 1387 | pdata->clear_bits_mask = (MAC_CR_PRMS_ | MAC_CR_MCPAS_); |
1390 | 1388 | ||
1391 | netdev_for_each_mc_addr(mc_list, dev) { | 1389 | netdev_for_each_mc_addr(ha, dev) { |
1392 | unsigned int bitnum = smsc911x_hash(mc_list->dmi_addr); | 1390 | unsigned int bitnum = smsc911x_hash(ha->addr); |
1393 | unsigned int mask = 0x01 << (bitnum & 0x1F); | 1391 | unsigned int mask = 0x01 << (bitnum & 0x1F); |
1394 | 1392 | ||
1395 | if (bitnum & 0x20) | 1393 | if (bitnum & 0x20) |