diff options
Diffstat (limited to 'drivers/net/pcmcia/xirc2ps_cs.c')
-rw-r--r-- | drivers/net/pcmcia/xirc2ps_cs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index 5e6b62ba8887..b6c3644888cd 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c | |||
@@ -1265,7 +1265,7 @@ xirc2ps_tx_timeout_task(struct work_struct *work) | |||
1265 | struct net_device *dev = local->dev; | 1265 | struct net_device *dev = local->dev; |
1266 | /* reset the card */ | 1266 | /* reset the card */ |
1267 | do_reset(dev,1); | 1267 | do_reset(dev,1); |
1268 | dev->trans_start = jiffies; | 1268 | dev->trans_start = jiffies; /* prevent tx timeout */ |
1269 | netif_wake_queue(dev); | 1269 | netif_wake_queue(dev); |
1270 | } | 1270 | } |
1271 | 1271 | ||
@@ -1328,7 +1328,6 @@ do_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1328 | PutByte(XIRCREG_CR, TransmitPacket|EnableIntr); | 1328 | PutByte(XIRCREG_CR, TransmitPacket|EnableIntr); |
1329 | 1329 | ||
1330 | dev_kfree_skb (skb); | 1330 | dev_kfree_skb (skb); |
1331 | dev->trans_start = jiffies; | ||
1332 | dev->stats.tx_bytes += pktlen; | 1331 | dev->stats.tx_bytes += pktlen; |
1333 | netif_start_queue(dev); | 1332 | netif_start_queue(dev); |
1334 | return NETDEV_TX_OK; | 1333 | return NETDEV_TX_OK; |
@@ -1368,7 +1367,7 @@ static void set_addresses(struct net_device *dev) | |||
1368 | { | 1367 | { |
1369 | unsigned int ioaddr = dev->base_addr; | 1368 | unsigned int ioaddr = dev->base_addr; |
1370 | local_info_t *lp = netdev_priv(dev); | 1369 | local_info_t *lp = netdev_priv(dev); |
1371 | struct dev_mc_list *dmi; | 1370 | struct netdev_hw_addr *ha; |
1372 | struct set_address_info sa_info; | 1371 | struct set_address_info sa_info; |
1373 | int i; | 1372 | int i; |
1374 | 1373 | ||
@@ -1383,10 +1382,10 @@ static void set_addresses(struct net_device *dev) | |||
1383 | 1382 | ||
1384 | set_address(&sa_info, dev->dev_addr); | 1383 | set_address(&sa_info, dev->dev_addr); |
1385 | i = 0; | 1384 | i = 0; |
1386 | netdev_for_each_mc_addr(dmi, dev) { | 1385 | netdev_for_each_mc_addr(ha, dev) { |
1387 | if (i++ == 9) | 1386 | if (i++ == 9) |
1388 | break; | 1387 | break; |
1389 | set_address(&sa_info, dmi->dmi_addr); | 1388 | set_address(&sa_info, ha->addr); |
1390 | } | 1389 | } |
1391 | while (i++ < 9) | 1390 | while (i++ < 9) |
1392 | set_address(&sa_info, dev->dev_addr); | 1391 | set_address(&sa_info, dev->dev_addr); |