diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/tokenring/ibmtr.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/tokenring/ibmtr.c')
-rw-r--r-- | drivers/net/tokenring/ibmtr.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c index 75fa32e34fd0..1a0967246e2f 100644 --- a/drivers/net/tokenring/ibmtr.c +++ b/drivers/net/tokenring/ibmtr.c | |||
@@ -96,7 +96,7 @@ | |||
96 | * | 96 | * |
97 | * Change by Mike Sullivan et al.: | 97 | * Change by Mike Sullivan et al.: |
98 | * + added turbo card support. No need to use lanaid to configure | 98 | * + added turbo card support. No need to use lanaid to configure |
99 | * the adapter into isa compatiblity mode. | 99 | * the adapter into isa compatibility mode. |
100 | * | 100 | * |
101 | * Changes by Burt Silverman to allow the computer to behave nicely when | 101 | * Changes by Burt Silverman to allow the computer to behave nicely when |
102 | * a cable is pulled or not in place, or a PCMCIA card is removed hot. | 102 | * a cable is pulled or not in place, or a PCMCIA card is removed hot. |
@@ -680,7 +680,7 @@ static int __devinit ibmtr_probe1(struct net_device *dev, int PIOaddr) | |||
680 | 680 | ||
681 | /* The PCMCIA has already got the interrupt line and the io port, | 681 | /* The PCMCIA has already got the interrupt line and the io port, |
682 | so no chance of anybody else getting it - MLP */ | 682 | so no chance of anybody else getting it - MLP */ |
683 | if (request_irq(dev->irq = irq, &tok_interrupt, 0, "ibmtr", dev) != 0) { | 683 | if (request_irq(dev->irq = irq, tok_interrupt, 0, "ibmtr", dev) != 0) { |
684 | DPRINTK("Could not grab irq %d. Halting Token Ring driver.\n", | 684 | DPRINTK("Could not grab irq %d. Halting Token Ring driver.\n", |
685 | irq); | 685 | irq); |
686 | iounmap(t_mmio); | 686 | iounmap(t_mmio); |
@@ -995,13 +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 | mclist = dev->mc_list; | 998 | netdev_for_each_mc_addr(mclist, dev) { |
999 | for (i = 0; i < dev->mc_count; i++) { | ||
1000 | address[0] |= mclist->dmi_addr[2]; | 999 | address[0] |= mclist->dmi_addr[2]; |
1001 | address[1] |= mclist->dmi_addr[3]; | 1000 | address[1] |= mclist->dmi_addr[3]; |
1002 | address[2] |= mclist->dmi_addr[4]; | 1001 | address[2] |= mclist->dmi_addr[4]; |
1003 | address[3] |= mclist->dmi_addr[5]; | 1002 | address[3] |= mclist->dmi_addr[5]; |
1004 | mclist = mclist->next; | ||
1005 | } | 1003 | } |
1006 | SET_PAGE(ti->srb_page); | 1004 | SET_PAGE(ti->srb_page); |
1007 | for (i = 0; i < sizeof(struct srb_set_funct_addr); i++) | 1005 | for (i = 0; i < sizeof(struct srb_set_funct_addr); i++) |