diff options
Diffstat (limited to 'drivers/net/tulip/uli526x.c')
-rw-r--r-- | drivers/net/tulip/uli526x.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c index a589dd34891e..96de5829b940 100644 --- a/drivers/net/tulip/uli526x.c +++ b/drivers/net/tulip/uli526x.c | |||
@@ -1040,11 +1040,11 @@ static void uli526x_timer(unsigned long data) | |||
1040 | 1040 | ||
1041 | /* TX polling kick monitor */ | 1041 | /* TX polling kick monitor */ |
1042 | if ( db->tx_packet_cnt && | 1042 | if ( db->tx_packet_cnt && |
1043 | time_after(jiffies, dev->trans_start + ULI526X_TX_KICK) ) { | 1043 | time_after(jiffies, dev_trans_start(dev) + ULI526X_TX_KICK) ) { |
1044 | outl(0x1, dev->base_addr + DCR1); // Tx polling again | 1044 | outl(0x1, dev->base_addr + DCR1); // Tx polling again |
1045 | 1045 | ||
1046 | // TX Timeout | 1046 | // TX Timeout |
1047 | if ( time_after(jiffies, dev->trans_start + ULI526X_TX_TIMEOUT) ) { | 1047 | if ( time_after(jiffies, dev_trans_start(dev) + ULI526X_TX_TIMEOUT) ) { |
1048 | db->reset_TXtimeout++; | 1048 | db->reset_TXtimeout++; |
1049 | db->wait_reset = 1; | 1049 | db->wait_reset = 1; |
1050 | printk( "%s: Tx timeout - resetting\n", | 1050 | printk( "%s: Tx timeout - resetting\n", |
@@ -1393,7 +1393,7 @@ static void update_cr6(u32 cr6_data, unsigned long ioaddr) | |||
1393 | static void send_filter_frame(struct net_device *dev, int mc_cnt) | 1393 | static void send_filter_frame(struct net_device *dev, int mc_cnt) |
1394 | { | 1394 | { |
1395 | struct uli526x_board_info *db = netdev_priv(dev); | 1395 | struct uli526x_board_info *db = netdev_priv(dev); |
1396 | struct dev_mc_list *mcptr; | 1396 | struct netdev_hw_addr *ha; |
1397 | struct tx_desc *txptr; | 1397 | struct tx_desc *txptr; |
1398 | u16 * addrptr; | 1398 | u16 * addrptr; |
1399 | u32 * suptr; | 1399 | u32 * suptr; |
@@ -1416,8 +1416,8 @@ static void send_filter_frame(struct net_device *dev, int mc_cnt) | |||
1416 | *suptr++ = 0xffff << FLT_SHIFT; | 1416 | *suptr++ = 0xffff << FLT_SHIFT; |
1417 | 1417 | ||
1418 | /* fit the multicast address */ | 1418 | /* fit the multicast address */ |
1419 | netdev_for_each_mc_addr(mcptr, dev) { | 1419 | netdev_for_each_mc_addr(ha, dev) { |
1420 | addrptr = (u16 *) mcptr->dmi_addr; | 1420 | addrptr = (u16 *) ha->addr; |
1421 | *suptr++ = addrptr[0] << FLT_SHIFT; | 1421 | *suptr++ = addrptr[0] << FLT_SHIFT; |
1422 | *suptr++ = addrptr[1] << FLT_SHIFT; | 1422 | *suptr++ = addrptr[1] << FLT_SHIFT; |
1423 | *suptr++ = addrptr[2] << FLT_SHIFT; | 1423 | *suptr++ = addrptr[2] << FLT_SHIFT; |