aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/nmclan_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia/nmclan_cs.c')
-rw-r--r--drivers/net/pcmcia/nmclan_cs.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/pcmcia/nmclan_cs.c b/drivers/net/pcmcia/nmclan_cs.c
index d8a3b3cf246e..9b63dec549cb 100644
--- a/drivers/net/pcmcia/nmclan_cs.c
+++ b/drivers/net/pcmcia/nmclan_cs.c
@@ -895,7 +895,7 @@ static void mace_tx_timeout(struct net_device *dev)
895#else /* #if RESET_ON_TIMEOUT */ 895#else /* #if RESET_ON_TIMEOUT */
896 printk("NOT resetting card\n"); 896 printk("NOT resetting card\n");
897#endif /* #if RESET_ON_TIMEOUT */ 897#endif /* #if RESET_ON_TIMEOUT */
898 dev->trans_start = jiffies; 898 dev->trans_start = jiffies; /* prevent tx timeout */
899 netif_wake_queue(dev); 899 netif_wake_queue(dev);
900} 900}
901 901
@@ -937,8 +937,6 @@ static netdev_tx_t mace_start_xmit(struct sk_buff *skb,
937 outb(skb->data[skb->len-1], ioaddr + AM2150_XMT); 937 outb(skb->data[skb->len-1], ioaddr + AM2150_XMT);
938 } 938 }
939 939
940 dev->trans_start = jiffies;
941
942#if MULTI_TX 940#if MULTI_TX
943 if (lp->tx_free_frames > 0) 941 if (lp->tx_free_frames > 0)
944 netif_start_queue(dev); 942 netif_start_queue(dev);
@@ -1307,8 +1305,6 @@ static void update_stats(unsigned int ioaddr, struct net_device *dev)
1307 lp->linux_stats.tx_fifo_errors = lp->mace_stats.uflo; 1305 lp->linux_stats.tx_fifo_errors = lp->mace_stats.uflo;
1308 lp->linux_stats.tx_heartbeat_errors = lp->mace_stats.cerr; 1306 lp->linux_stats.tx_heartbeat_errors = lp->mace_stats.cerr;
1309 /* lp->linux_stats.tx_window_errors; */ 1307 /* lp->linux_stats.tx_window_errors; */
1310
1311 return;
1312} /* update_stats */ 1308} /* update_stats */
1313 1309
1314/* ---------------------------------------------------------------------------- 1310/* ----------------------------------------------------------------------------
@@ -1467,7 +1463,7 @@ static void set_multicast_list(struct net_device *dev)
1467{ 1463{
1468 mace_private *lp = netdev_priv(dev); 1464 mace_private *lp = netdev_priv(dev);
1469 int adr[ETHER_ADDR_LEN] = {0}; /* Ethernet address */ 1465 int adr[ETHER_ADDR_LEN] = {0}; /* Ethernet address */
1470 struct dev_mc_list *dmi; 1466 struct netdev_hw_addr *ha;
1471 1467
1472#ifdef PCMCIA_DEBUG 1468#ifdef PCMCIA_DEBUG
1473 { 1469 {
@@ -1487,8 +1483,8 @@ static void set_multicast_list(struct net_device *dev)
1487 if (num_addrs > 0) { 1483 if (num_addrs > 0) {
1488 /* Calculate multicast logical address filter */ 1484 /* Calculate multicast logical address filter */
1489 memset(lp->multicast_ladrf, 0, MACE_LADRF_LEN); 1485 memset(lp->multicast_ladrf, 0, MACE_LADRF_LEN);
1490 netdev_for_each_mc_addr(dmi, dev) { 1486 netdev_for_each_mc_addr(ha, dev) {
1491 memcpy(adr, dmi->dmi_addr, ETHER_ADDR_LEN); 1487 memcpy(adr, ha->addr, ETHER_ADDR_LEN);
1492 BuildLAF(lp->multicast_ladrf, adr); 1488 BuildLAF(lp->multicast_ladrf, adr);
1493 } 1489 }
1494 } 1490 }