diff options
Diffstat (limited to 'drivers/net/tokenring/ibmtr.c')
-rw-r--r-- | drivers/net/tokenring/ibmtr.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c index 1a0967246e2f..91e6c78271a3 100644 --- a/drivers/net/tokenring/ibmtr.c +++ b/drivers/net/tokenring/ibmtr.c | |||
@@ -986,7 +986,7 @@ static void open_sap(unsigned char type, struct net_device *dev) | |||
986 | static void tok_set_multicast_list(struct net_device *dev) | 986 | static void tok_set_multicast_list(struct net_device *dev) |
987 | { | 987 | { |
988 | struct tok_info *ti = netdev_priv(dev); | 988 | struct tok_info *ti = netdev_priv(dev); |
989 | struct dev_mc_list *mclist; | 989 | struct netdev_hw_addr *ha; |
990 | unsigned char address[4]; | 990 | unsigned char address[4]; |
991 | 991 | ||
992 | int i; | 992 | int i; |
@@ -995,11 +995,11 @@ static void tok_set_multicast_list(struct net_device *dev) | |||
995 | /*BMS ifconfig tr down or hot unplug a PCMCIA card ??hownowbrowncow*/ | 995 | /*BMS ifconfig tr down or hot unplug a PCMCIA card ??hownowbrowncow*/ |
996 | if (/*BMSHELPdev->start == 0 ||*/ ti->open_status != OPEN) return; | 996 | if (/*BMSHELPdev->start == 0 ||*/ ti->open_status != OPEN) return; |
997 | address[0] = address[1] = address[2] = address[3] = 0; | 997 | address[0] = address[1] = address[2] = address[3] = 0; |
998 | netdev_for_each_mc_addr(mclist, dev) { | 998 | netdev_for_each_mc_addr(ha, dev) { |
999 | address[0] |= mclist->dmi_addr[2]; | 999 | address[0] |= ha->addr[2]; |
1000 | address[1] |= mclist->dmi_addr[3]; | 1000 | address[1] |= ha->addr[3]; |
1001 | address[2] |= mclist->dmi_addr[4]; | 1001 | address[2] |= ha->addr[4]; |
1002 | address[3] |= mclist->dmi_addr[5]; | 1002 | address[3] |= ha->addr[5]; |
1003 | } | 1003 | } |
1004 | SET_PAGE(ti->srb_page); | 1004 | SET_PAGE(ti->srb_page); |
1005 | for (i = 0; i < sizeof(struct srb_set_funct_addr); i++) | 1005 | for (i = 0; i < sizeof(struct srb_set_funct_addr); i++) |
@@ -1041,7 +1041,6 @@ static netdev_tx_t tok_send_packet(struct sk_buff *skb, | |||
1041 | writew(ti->exsap_station_id, ti->srb + STATION_ID_OFST); | 1041 | writew(ti->exsap_station_id, ti->srb + STATION_ID_OFST); |
1042 | writeb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); | 1042 | writeb(CMD_IN_SRB, ti->mmio + ACA_OFFSET + ACA_SET + ISRA_ODD); |
1043 | spin_unlock_irqrestore(&(ti->lock), flags); | 1043 | spin_unlock_irqrestore(&(ti->lock), flags); |
1044 | dev->trans_start = jiffies; | ||
1045 | return NETDEV_TX_OK; | 1044 | return NETDEV_TX_OK; |
1046 | } | 1045 | } |
1047 | 1046 | ||