diff options
Diffstat (limited to 'drivers/net/b44.c')
-rw-r--r-- | drivers/net/b44.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 332c60356285..293f9c16e786 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/init.h> | 27 | #include <linux/init.h> |
28 | #include <linux/dma-mapping.h> | 28 | #include <linux/dma-mapping.h> |
29 | #include <linux/ssb/ssb.h> | 29 | #include <linux/ssb/ssb.h> |
30 | #include <linux/slab.h> | ||
30 | 31 | ||
31 | #include <asm/uaccess.h> | 32 | #include <asm/uaccess.h> |
32 | #include <asm/io.h> | 33 | #include <asm/io.h> |
@@ -1013,8 +1014,6 @@ static netdev_tx_t b44_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1013 | if (TX_BUFFS_AVAIL(bp) < 1) | 1014 | if (TX_BUFFS_AVAIL(bp) < 1) |
1014 | netif_stop_queue(dev); | 1015 | netif_stop_queue(dev); |
1015 | 1016 | ||
1016 | dev->trans_start = jiffies; | ||
1017 | |||
1018 | out_unlock: | 1017 | out_unlock: |
1019 | spin_unlock_irqrestore(&bp->lock, flags); | 1018 | spin_unlock_irqrestore(&bp->lock, flags); |
1020 | 1019 | ||
@@ -1680,15 +1679,15 @@ static struct net_device_stats *b44_get_stats(struct net_device *dev) | |||
1680 | 1679 | ||
1681 | static int __b44_load_mcast(struct b44 *bp, struct net_device *dev) | 1680 | static int __b44_load_mcast(struct b44 *bp, struct net_device *dev) |
1682 | { | 1681 | { |
1683 | struct dev_mc_list *mclist; | 1682 | struct netdev_hw_addr *ha; |
1684 | int i, num_ents; | 1683 | int i, num_ents; |
1685 | 1684 | ||
1686 | num_ents = min_t(int, netdev_mc_count(dev), B44_MCAST_TABLE_SIZE); | 1685 | num_ents = min_t(int, netdev_mc_count(dev), B44_MCAST_TABLE_SIZE); |
1687 | i = 0; | 1686 | i = 0; |
1688 | netdev_for_each_mc_addr(mclist, dev) { | 1687 | netdev_for_each_mc_addr(ha, dev) { |
1689 | if (i == num_ents) | 1688 | if (i == num_ents) |
1690 | break; | 1689 | break; |
1691 | __b44_cam_write(bp, mclist->dmi_addr, i++ + 1); | 1690 | __b44_cam_write(bp, ha->addr, i++ + 1); |
1692 | } | 1691 | } |
1693 | return i+1; | 1692 | return i+1; |
1694 | } | 1693 | } |