diff options
Diffstat (limited to 'drivers/net/tulip/dmfe.c')
-rw-r--r-- | drivers/net/tulip/dmfe.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/net/tulip/dmfe.c b/drivers/net/tulip/dmfe.c index 9568156dea98..29e6c63d39fd 100644 --- a/drivers/net/tulip/dmfe.c +++ b/drivers/net/tulip/dmfe.c | |||
@@ -1118,7 +1118,6 @@ static void dmfe_ethtool_get_wol(struct net_device *dev, | |||
1118 | 1118 | ||
1119 | wolinfo->supported = WAKE_PHY | WAKE_MAGIC; | 1119 | wolinfo->supported = WAKE_PHY | WAKE_MAGIC; |
1120 | wolinfo->wolopts = db->wol_mode; | 1120 | wolinfo->wolopts = db->wol_mode; |
1121 | return; | ||
1122 | } | 1121 | } |
1123 | 1122 | ||
1124 | 1123 | ||
@@ -1180,11 +1179,11 @@ static void dmfe_timer(unsigned long data) | |||
1180 | 1179 | ||
1181 | /* TX polling kick monitor */ | 1180 | /* TX polling kick monitor */ |
1182 | if ( db->tx_packet_cnt && | 1181 | if ( db->tx_packet_cnt && |
1183 | time_after(jiffies, dev->trans_start + DMFE_TX_KICK) ) { | 1182 | time_after(jiffies, dev_trans_start(dev) + DMFE_TX_KICK) ) { |
1184 | outl(0x1, dev->base_addr + DCR1); /* Tx polling again */ | 1183 | outl(0x1, dev->base_addr + DCR1); /* Tx polling again */ |
1185 | 1184 | ||
1186 | /* TX Timeout */ | 1185 | /* TX Timeout */ |
1187 | if ( time_after(jiffies, dev->trans_start + DMFE_TX_TIMEOUT) ) { | 1186 | if (time_after(jiffies, dev_trans_start(dev) + DMFE_TX_TIMEOUT) ) { |
1188 | db->reset_TXtimeout++; | 1187 | db->reset_TXtimeout++; |
1189 | db->wait_reset = 1; | 1188 | db->wait_reset = 1; |
1190 | dev_warn(&dev->dev, "Tx timeout - resetting\n"); | 1189 | dev_warn(&dev->dev, "Tx timeout - resetting\n"); |
@@ -1453,7 +1452,7 @@ static void update_cr6(u32 cr6_data, unsigned long ioaddr) | |||
1453 | 1452 | ||
1454 | static void dm9132_id_table(struct DEVICE *dev) | 1453 | static void dm9132_id_table(struct DEVICE *dev) |
1455 | { | 1454 | { |
1456 | struct dev_mc_list *mcptr; | 1455 | struct netdev_hw_addr *ha; |
1457 | u16 * addrptr; | 1456 | u16 * addrptr; |
1458 | unsigned long ioaddr = dev->base_addr+0xc0; /* ID Table */ | 1457 | unsigned long ioaddr = dev->base_addr+0xc0; /* ID Table */ |
1459 | u32 hash_val; | 1458 | u32 hash_val; |
@@ -1477,8 +1476,8 @@ static void dm9132_id_table(struct DEVICE *dev) | |||
1477 | hash_table[3] = 0x8000; | 1476 | hash_table[3] = 0x8000; |
1478 | 1477 | ||
1479 | /* the multicast address in Hash Table : 64 bits */ | 1478 | /* the multicast address in Hash Table : 64 bits */ |
1480 | netdev_for_each_mc_addr(mcptr, dev) { | 1479 | netdev_for_each_mc_addr(ha, dev) { |
1481 | hash_val = cal_CRC((char *) mcptr->dmi_addr, 6, 0) & 0x3f; | 1480 | hash_val = cal_CRC((char *) ha->addr, 6, 0) & 0x3f; |
1482 | hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16); | 1481 | hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16); |
1483 | } | 1482 | } |
1484 | 1483 | ||
@@ -1496,7 +1495,7 @@ static void dm9132_id_table(struct DEVICE *dev) | |||
1496 | static void send_filter_frame(struct DEVICE *dev) | 1495 | static void send_filter_frame(struct DEVICE *dev) |
1497 | { | 1496 | { |
1498 | struct dmfe_board_info *db = netdev_priv(dev); | 1497 | struct dmfe_board_info *db = netdev_priv(dev); |
1499 | struct dev_mc_list *mcptr; | 1498 | struct netdev_hw_addr *ha; |
1500 | struct tx_desc *txptr; | 1499 | struct tx_desc *txptr; |
1501 | u16 * addrptr; | 1500 | u16 * addrptr; |
1502 | u32 * suptr; | 1501 | u32 * suptr; |
@@ -1519,8 +1518,8 @@ static void send_filter_frame(struct DEVICE *dev) | |||
1519 | *suptr++ = 0xffff; | 1518 | *suptr++ = 0xffff; |
1520 | 1519 | ||
1521 | /* fit the multicast address */ | 1520 | /* fit the multicast address */ |
1522 | netdev_for_each_mc_addr(mcptr, dev) { | 1521 | netdev_for_each_mc_addr(ha, dev) { |
1523 | addrptr = (u16 *) mcptr->dmi_addr; | 1522 | addrptr = (u16 *) ha->addr; |
1524 | *suptr++ = addrptr[0]; | 1523 | *suptr++ = addrptr[0]; |
1525 | *suptr++ = addrptr[1]; | 1524 | *suptr++ = addrptr[1]; |
1526 | *suptr++ = addrptr[2]; | 1525 | *suptr++ = addrptr[2]; |