diff options
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 8613a52ddf17..e345ec8cb473 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -882,7 +882,6 @@ static netdev_tx_t mv643xx_eth_xmit(struct sk_buff *skb, struct net_device *dev) | |||
882 | 882 | ||
883 | txq->tx_bytes += skb->len; | 883 | txq->tx_bytes += skb->len; |
884 | txq->tx_packets++; | 884 | txq->tx_packets++; |
885 | dev->trans_start = jiffies; | ||
886 | 885 | ||
887 | entries_left = txq->tx_ring_size - txq->tx_desc_count; | 886 | entries_left = txq->tx_ring_size - txq->tx_desc_count; |
888 | if (entries_left < MAX_SKB_FRAGS + 1) | 887 | if (entries_left < MAX_SKB_FRAGS + 1) |
@@ -1770,7 +1769,7 @@ static void mv643xx_eth_program_multicast_filter(struct net_device *dev) | |||
1770 | struct mv643xx_eth_private *mp = netdev_priv(dev); | 1769 | struct mv643xx_eth_private *mp = netdev_priv(dev); |
1771 | u32 *mc_spec; | 1770 | u32 *mc_spec; |
1772 | u32 *mc_other; | 1771 | u32 *mc_other; |
1773 | struct dev_addr_list *addr; | 1772 | struct netdev_hw_addr *ha; |
1774 | int i; | 1773 | int i; |
1775 | 1774 | ||
1776 | if (dev->flags & (IFF_PROMISC | IFF_ALLMULTI)) { | 1775 | if (dev->flags & (IFF_PROMISC | IFF_ALLMULTI)) { |
@@ -1795,8 +1794,8 @@ oom: | |||
1795 | memset(mc_spec, 0, 0x100); | 1794 | memset(mc_spec, 0, 0x100); |
1796 | memset(mc_other, 0, 0x100); | 1795 | memset(mc_other, 0, 0x100); |
1797 | 1796 | ||
1798 | netdev_for_each_mc_addr(addr, dev) { | 1797 | netdev_for_each_mc_addr(ha, dev) { |
1799 | u8 *a = addr->da_addr; | 1798 | u8 *a = ha->addr; |
1800 | u32 *table; | 1799 | u32 *table; |
1801 | int entry; | 1800 | int entry; |
1802 | 1801 | ||
@@ -2609,10 +2608,9 @@ static int mv643xx_eth_shared_probe(struct platform_device *pdev) | |||
2609 | goto out; | 2608 | goto out; |
2610 | 2609 | ||
2611 | ret = -ENOMEM; | 2610 | ret = -ENOMEM; |
2612 | msp = kmalloc(sizeof(*msp), GFP_KERNEL); | 2611 | msp = kzalloc(sizeof(*msp), GFP_KERNEL); |
2613 | if (msp == NULL) | 2612 | if (msp == NULL) |
2614 | goto out; | 2613 | goto out; |
2615 | memset(msp, 0, sizeof(*msp)); | ||
2616 | 2614 | ||
2617 | msp->base = ioremap(res->start, res->end - res->start + 1); | 2615 | msp->base = ioremap(res->start, res->end - res->start + 1); |
2618 | if (msp->base == NULL) | 2616 | if (msp->base == NULL) |