diff options
Diffstat (limited to 'drivers/net/pcnet32.c')
-rw-r--r-- | drivers/net/pcnet32.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index ca8c0e037400..044b7b07f5f4 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c | |||
@@ -1246,7 +1246,6 @@ static void pcnet32_rx_entry(struct net_device *dev, | |||
1246 | dev->stats.rx_bytes += skb->len; | 1246 | dev->stats.rx_bytes += skb->len; |
1247 | skb->protocol = eth_type_trans(skb, dev); | 1247 | skb->protocol = eth_type_trans(skb, dev); |
1248 | netif_receive_skb(skb); | 1248 | netif_receive_skb(skb); |
1249 | dev->last_rx = jiffies; | ||
1250 | dev->stats.rx_packets++; | 1249 | dev->stats.rx_packets++; |
1251 | return; | 1250 | return; |
1252 | } | 1251 | } |
@@ -1398,7 +1397,7 @@ static int pcnet32_poll(struct napi_struct *napi, int budget) | |||
1398 | if (work_done < budget) { | 1397 | if (work_done < budget) { |
1399 | spin_lock_irqsave(&lp->lock, flags); | 1398 | spin_lock_irqsave(&lp->lock, flags); |
1400 | 1399 | ||
1401 | __netif_rx_complete(dev, napi); | 1400 | __netif_rx_complete(napi); |
1402 | 1401 | ||
1403 | /* clear interrupt masks */ | 1402 | /* clear interrupt masks */ |
1404 | val = lp->a.read_csr(ioaddr, CSR3); | 1403 | val = lp->a.read_csr(ioaddr, CSR3); |
@@ -1747,8 +1746,7 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev) | |||
1747 | memset(dev->dev_addr, 0, sizeof(dev->dev_addr)); | 1746 | memset(dev->dev_addr, 0, sizeof(dev->dev_addr)); |
1748 | 1747 | ||
1749 | if (pcnet32_debug & NETIF_MSG_PROBE) { | 1748 | if (pcnet32_debug & NETIF_MSG_PROBE) { |
1750 | DECLARE_MAC_BUF(mac); | 1749 | printk(" %pM", dev->dev_addr); |
1751 | printk(" %s", print_mac(mac, dev->dev_addr)); | ||
1752 | 1750 | ||
1753 | /* Version 0x2623 and 0x2624 */ | 1751 | /* Version 0x2623 and 0x2624 */ |
1754 | if (((chip_version + 1) & 0xfffe) == 0x2624) { | 1752 | if (((chip_version + 1) & 0xfffe) == 0x2624) { |
@@ -2588,14 +2586,14 @@ pcnet32_interrupt(int irq, void *dev_id) | |||
2588 | dev->name, csr0); | 2586 | dev->name, csr0); |
2589 | /* unlike for the lance, there is no restart needed */ | 2587 | /* unlike for the lance, there is no restart needed */ |
2590 | } | 2588 | } |
2591 | if (netif_rx_schedule_prep(dev, &lp->napi)) { | 2589 | if (netif_rx_schedule_prep(&lp->napi)) { |
2592 | u16 val; | 2590 | u16 val; |
2593 | /* set interrupt masks */ | 2591 | /* set interrupt masks */ |
2594 | val = lp->a.read_csr(ioaddr, CSR3); | 2592 | val = lp->a.read_csr(ioaddr, CSR3); |
2595 | val |= 0x5f00; | 2593 | val |= 0x5f00; |
2596 | lp->a.write_csr(ioaddr, CSR3, val); | 2594 | lp->a.write_csr(ioaddr, CSR3, val); |
2597 | mmiowb(); | 2595 | mmiowb(); |
2598 | __netif_rx_schedule(dev, &lp->napi); | 2596 | __netif_rx_schedule(&lp->napi); |
2599 | break; | 2597 | break; |
2600 | } | 2598 | } |
2601 | csr0 = lp->a.read_csr(ioaddr, CSR0); | 2599 | csr0 = lp->a.read_csr(ioaddr, CSR0); |