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/3c501.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/3c501.c')
-rw-r--r-- | drivers/net/3c501.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/3c501.c b/drivers/net/3c501.c index f60309175ef5..3ea42ff17657 100644 --- a/drivers/net/3c501.c +++ b/drivers/net/3c501.c | |||
@@ -117,7 +117,6 @@ static const char version[] = | |||
117 | #include <linux/fcntl.h> | 117 | #include <linux/fcntl.h> |
118 | #include <linux/ioport.h> | 118 | #include <linux/ioport.h> |
119 | #include <linux/interrupt.h> | 119 | #include <linux/interrupt.h> |
120 | #include <linux/slab.h> | ||
121 | #include <linux/string.h> | 120 | #include <linux/string.h> |
122 | #include <linux/errno.h> | 121 | #include <linux/errno.h> |
123 | #include <linux/spinlock.h> | 122 | #include <linux/spinlock.h> |
@@ -249,11 +248,11 @@ static int __init el1_probe1(struct net_device *dev, int ioaddr) | |||
249 | * for the Sager NP943 prefix. | 248 | * for the Sager NP943 prefix. |
250 | */ | 249 | */ |
251 | 250 | ||
252 | if (station_addr[0] == 0x02 && station_addr[1] == 0x60 | 251 | if (station_addr[0] == 0x02 && station_addr[1] == 0x60 && |
253 | && station_addr[2] == 0x8c) | 252 | station_addr[2] == 0x8c) |
254 | mname = "3c501"; | 253 | mname = "3c501"; |
255 | else if (station_addr[0] == 0x00 && station_addr[1] == 0x80 | 254 | else if (station_addr[0] == 0x00 && station_addr[1] == 0x80 && |
256 | && station_addr[2] == 0xC8) | 255 | station_addr[2] == 0xC8) |
257 | mname = "NP943"; | 256 | mname = "NP943"; |
258 | else { | 257 | else { |
259 | release_region(ioaddr, EL1_IO_EXTENT); | 258 | release_region(ioaddr, EL1_IO_EXTENT); |
@@ -345,7 +344,7 @@ static int el_open(struct net_device *dev) | |||
345 | if (el_debug > 2) | 344 | if (el_debug > 2) |
346 | pr_debug("%s: Doing el_open()...\n", dev->name); | 345 | pr_debug("%s: Doing el_open()...\n", dev->name); |
347 | 346 | ||
348 | retval = request_irq(dev->irq, &el_interrupt, 0, dev->name, dev); | 347 | retval = request_irq(dev->irq, el_interrupt, 0, dev->name, dev); |
349 | if (retval) | 348 | if (retval) |
350 | return retval; | 349 | return retval; |
351 | 350 | ||
@@ -812,7 +811,7 @@ static void set_multicast_list(struct net_device *dev) | |||
812 | if (dev->flags & IFF_PROMISC) { | 811 | if (dev->flags & IFF_PROMISC) { |
813 | outb(RX_PROM, RX_CMD); | 812 | outb(RX_PROM, RX_CMD); |
814 | inb(RX_STATUS); | 813 | inb(RX_STATUS); |
815 | } else if (dev->mc_list || dev->flags & IFF_ALLMULTI) { | 814 | } else if (!netdev_mc_empty(dev) || dev->flags & IFF_ALLMULTI) { |
816 | /* Multicast or all multicast is the same */ | 815 | /* Multicast or all multicast is the same */ |
817 | outb(RX_MULT, RX_CMD); | 816 | outb(RX_MULT, RX_CMD); |
818 | inb(RX_STATUS); /* Clear status. */ | 817 | inb(RX_STATUS); /* Clear status. */ |