aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/xirc2ps_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia/xirc2ps_cs.c')
-rw-r--r--drivers/net/pcmcia/xirc2ps_cs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c
index 4d1802e457be..6622f0401794 100644
--- a/drivers/net/pcmcia/xirc2ps_cs.c
+++ b/drivers/net/pcmcia/xirc2ps_cs.c
@@ -1295,7 +1295,7 @@ xirc2ps_tx_timeout_task(struct work_struct *work)
1295 struct net_device *dev = local->dev; 1295 struct net_device *dev = local->dev;
1296 /* reset the card */ 1296 /* reset the card */
1297 do_reset(dev,1); 1297 do_reset(dev,1);
1298 dev->trans_start = jiffies; 1298 dev->trans_start = jiffies; /* prevent tx timeout */
1299 netif_wake_queue(dev); 1299 netif_wake_queue(dev);
1300} 1300}
1301 1301
@@ -1358,7 +1358,6 @@ do_start_xmit(struct sk_buff *skb, struct net_device *dev)
1358 PutByte(XIRCREG_CR, TransmitPacket|EnableIntr); 1358 PutByte(XIRCREG_CR, TransmitPacket|EnableIntr);
1359 1359
1360 dev_kfree_skb (skb); 1360 dev_kfree_skb (skb);
1361 dev->trans_start = jiffies;
1362 dev->stats.tx_bytes += pktlen; 1361 dev->stats.tx_bytes += pktlen;
1363 netif_start_queue(dev); 1362 netif_start_queue(dev);
1364 return NETDEV_TX_OK; 1363 return NETDEV_TX_OK;
@@ -1398,7 +1397,7 @@ static void set_addresses(struct net_device *dev)
1398{ 1397{
1399 unsigned int ioaddr = dev->base_addr; 1398 unsigned int ioaddr = dev->base_addr;
1400 local_info_t *lp = netdev_priv(dev); 1399 local_info_t *lp = netdev_priv(dev);
1401 struct dev_mc_list *dmi; 1400 struct netdev_hw_addr *ha;
1402 struct set_address_info sa_info; 1401 struct set_address_info sa_info;
1403 int i; 1402 int i;
1404 1403
@@ -1413,10 +1412,10 @@ static void set_addresses(struct net_device *dev)
1413 1412
1414 set_address(&sa_info, dev->dev_addr); 1413 set_address(&sa_info, dev->dev_addr);
1415 i = 0; 1414 i = 0;
1416 netdev_for_each_mc_addr(dmi, dev) { 1415 netdev_for_each_mc_addr(ha, dev) {
1417 if (i++ == 9) 1416 if (i++ == 9)
1418 break; 1417 break;
1419 set_address(&sa_info, dmi->dmi_addr); 1418 set_address(&sa_info, ha->addr);
1420 } 1419 }
1421 while (i++ < 9) 1420 while (i++ < 9)
1422 set_address(&sa_info, dev->dev_addr); 1421 set_address(&sa_info, dev->dev_addr);