diff options
Diffstat (limited to 'drivers/net/tokenring')
-rw-r--r-- | drivers/net/tokenring/3c359.c | 2 | ||||
-rw-r--r-- | drivers/net/tokenring/ibmtr.c | 2 | ||||
-rw-r--r-- | drivers/net/tokenring/lanstreamer.c | 2 | ||||
-rw-r--r-- | drivers/net/tokenring/olympic.c | 2 | ||||
-rw-r--r-- | drivers/net/tokenring/tms380tr.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/tokenring/3c359.c b/drivers/net/tokenring/3c359.c index b0d7db9d8bb4..eff68e1d107b 100644 --- a/drivers/net/tokenring/3c359.c +++ b/drivers/net/tokenring/3c359.c | |||
@@ -1408,7 +1408,7 @@ static void xl_set_rx_mode(struct net_device *dev) | |||
1408 | 1408 | ||
1409 | dev_mc_address[0] = dev_mc_address[1] = dev_mc_address[2] = dev_mc_address[3] = 0 ; | 1409 | dev_mc_address[0] = dev_mc_address[1] = dev_mc_address[2] = dev_mc_address[3] = 0 ; |
1410 | 1410 | ||
1411 | for (i=0,dmi=dev->mc_list;i < dev->mc_count; i++,dmi = dmi->next) { | 1411 | for (i=0,dmi=dev->mc_list;i < netdev_mc_count(dev); i++,dmi = dmi->next) { |
1412 | dev_mc_address[0] |= dmi->dmi_addr[2] ; | 1412 | dev_mc_address[0] |= dmi->dmi_addr[2] ; |
1413 | dev_mc_address[1] |= dmi->dmi_addr[3] ; | 1413 | dev_mc_address[1] |= dmi->dmi_addr[3] ; |
1414 | dev_mc_address[2] |= dmi->dmi_addr[4] ; | 1414 | dev_mc_address[2] |= dmi->dmi_addr[4] ; |
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c index 66272f2a0758..1ce8f85a89aa 100644 --- a/drivers/net/tokenring/ibmtr.c +++ b/drivers/net/tokenring/ibmtr.c | |||
@@ -996,7 +996,7 @@ static void tok_set_multicast_list(struct net_device *dev) | |||
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 | mclist = dev->mc_list; | 998 | mclist = dev->mc_list; |
999 | for (i = 0; i < dev->mc_count; i++) { | 999 | for (i = 0; i < netdev_mc_count(dev); i++) { |
1000 | address[0] |= mclist->dmi_addr[2]; | 1000 | address[0] |= mclist->dmi_addr[2]; |
1001 | address[1] |= mclist->dmi_addr[3]; | 1001 | address[1] |= mclist->dmi_addr[3]; |
1002 | address[2] |= mclist->dmi_addr[4]; | 1002 | address[2] |= mclist->dmi_addr[4]; |
diff --git a/drivers/net/tokenring/lanstreamer.c b/drivers/net/tokenring/lanstreamer.c index 3f9d5a25562e..26d84daf660b 100644 --- a/drivers/net/tokenring/lanstreamer.c +++ b/drivers/net/tokenring/lanstreamer.c | |||
@@ -1303,7 +1303,7 @@ static void streamer_set_rx_mode(struct net_device *dev) | |||
1303 | writel(streamer_priv->srb,streamer_mmio+LAPA); | 1303 | writel(streamer_priv->srb,streamer_mmio+LAPA); |
1304 | dev_mc_address[0] = dev_mc_address[1] = dev_mc_address[2] = dev_mc_address[3] = 0 ; | 1304 | dev_mc_address[0] = dev_mc_address[1] = dev_mc_address[2] = dev_mc_address[3] = 0 ; |
1305 | 1305 | ||
1306 | for (i=0,dmi=dev->mc_list;i < dev->mc_count; i++,dmi = dmi->next) | 1306 | for (i=0,dmi=dev->mc_list;i < netdev_mc_count(dev); i++,dmi = dmi->next) |
1307 | { | 1307 | { |
1308 | dev_mc_address[0] |= dmi->dmi_addr[2] ; | 1308 | dev_mc_address[0] |= dmi->dmi_addr[2] ; |
1309 | dev_mc_address[1] |= dmi->dmi_addr[3] ; | 1309 | dev_mc_address[1] |= dmi->dmi_addr[3] ; |
diff --git a/drivers/net/tokenring/olympic.c b/drivers/net/tokenring/olympic.c index f010a4dc5f19..a242d125b34c 100644 --- a/drivers/net/tokenring/olympic.c +++ b/drivers/net/tokenring/olympic.c | |||
@@ -1178,7 +1178,7 @@ static void olympic_set_rx_mode(struct net_device *dev) | |||
1178 | 1178 | ||
1179 | dev_mc_address[0] = dev_mc_address[1] = dev_mc_address[2] = dev_mc_address[3] = 0 ; | 1179 | dev_mc_address[0] = dev_mc_address[1] = dev_mc_address[2] = dev_mc_address[3] = 0 ; |
1180 | 1180 | ||
1181 | for (i=0,dmi=dev->mc_list;i < dev->mc_count; i++,dmi = dmi->next) { | 1181 | for (i=0,dmi=dev->mc_list;i < netdev_mc_count(dev); i++,dmi = dmi->next) { |
1182 | dev_mc_address[0] |= dmi->dmi_addr[2] ; | 1182 | dev_mc_address[0] |= dmi->dmi_addr[2] ; |
1183 | dev_mc_address[1] |= dmi->dmi_addr[3] ; | 1183 | dev_mc_address[1] |= dmi->dmi_addr[3] ; |
1184 | dev_mc_address[2] |= dmi->dmi_addr[4] ; | 1184 | dev_mc_address[2] |= dmi->dmi_addr[4] ; |
diff --git a/drivers/net/tokenring/tms380tr.c b/drivers/net/tokenring/tms380tr.c index e3c42f5ac4a9..6b8868959b85 100644 --- a/drivers/net/tokenring/tms380tr.c +++ b/drivers/net/tokenring/tms380tr.c | |||
@@ -1214,7 +1214,7 @@ static void tms380tr_set_multicast_list(struct net_device *dev) | |||
1214 | { | 1214 | { |
1215 | int i; | 1215 | int i; |
1216 | struct dev_mc_list *mclist = dev->mc_list; | 1216 | struct dev_mc_list *mclist = dev->mc_list; |
1217 | for (i=0; i< dev->mc_count; i++) | 1217 | for (i=0; i< netdev_mc_count(dev); i++) |
1218 | { | 1218 | { |
1219 | ((char *)(&tp->ocpl.FunctAddr))[0] |= | 1219 | ((char *)(&tp->ocpl.FunctAddr))[0] |= |
1220 | mclist->dmi_addr[2]; | 1220 | mclist->dmi_addr[2]; |