aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/eexpress.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/eexpress.c')
-rw-r--r--drivers/net/eexpress.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/eexpress.c b/drivers/net/eexpress.c
index 1a7322b80ea7..43c9c9c5cf4c 100644
--- a/drivers/net/eexpress.c
+++ b/drivers/net/eexpress.c
@@ -543,7 +543,7 @@ static void unstick_cu(struct net_device *dev)
543 543
544 if (lp->started) 544 if (lp->started)
545 { 545 {
546 if (time_after(jiffies, dev->trans_start + 50)) 546 if (time_after(jiffies, dev_trans_start(dev) + HZ/2))
547 { 547 {
548 if (lp->tx_link==lp->last_tx_restart) 548 if (lp->tx_link==lp->last_tx_restart)
549 { 549 {
@@ -1018,7 +1018,7 @@ static void eexp_hw_tx_pio(struct net_device *dev, unsigned short *buf,
1018 outw(lp->tx_head+0x16, ioaddr + DATAPORT); 1018 outw(lp->tx_head+0x16, ioaddr + DATAPORT);
1019 outw(0, ioaddr + DATAPORT); 1019 outw(0, ioaddr + DATAPORT);
1020 1020
1021 outsw(ioaddr + DATAPORT, buf, (len+1)>>1); 1021 outsw(ioaddr + DATAPORT, buf, (len+1)>>1);
1022 1022
1023 outw(lp->tx_tail+0xc, ioaddr + WRITE_PTR); 1023 outw(lp->tx_tail+0xc, ioaddr + WRITE_PTR);
1024 outw(lp->tx_head, ioaddr + DATAPORT); 1024 outw(lp->tx_head, ioaddr + DATAPORT);
@@ -1575,7 +1575,7 @@ static void eexp_hw_init586(struct net_device *dev)
1575 1575
1576static void eexp_setup_filter(struct net_device *dev) 1576static void eexp_setup_filter(struct net_device *dev)
1577{ 1577{
1578 struct dev_mc_list *dmi; 1578 struct netdev_hw_addr *ha;
1579 unsigned short ioaddr = dev->base_addr; 1579 unsigned short ioaddr = dev->base_addr;
1580 int count = netdev_mc_count(dev); 1580 int count = netdev_mc_count(dev);
1581 int i; 1581 int i;
@@ -1588,8 +1588,8 @@ static void eexp_setup_filter(struct net_device *dev)
1588 outw(CONF_NR_MULTICAST & ~31, ioaddr+SM_PTR); 1588 outw(CONF_NR_MULTICAST & ~31, ioaddr+SM_PTR);
1589 outw(6*count, ioaddr+SHADOW(CONF_NR_MULTICAST)); 1589 outw(6*count, ioaddr+SHADOW(CONF_NR_MULTICAST));
1590 i = 0; 1590 i = 0;
1591 netdev_for_each_mc_addr(dmi, dev) { 1591 netdev_for_each_mc_addr(ha, dev) {
1592 unsigned short *data = (unsigned short *) dmi->dmi_addr; 1592 unsigned short *data = (unsigned short *) ha->addr;
1593 1593
1594 if (i == count) 1594 if (i == count)
1595 break; 1595 break;