aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/at1700.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/at1700.c')
-rw-r--r--drivers/net/at1700.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/at1700.c b/drivers/net/at1700.c
index d4ab69f032be..b14f4799d5d1 100644
--- a/drivers/net/at1700.c
+++ b/drivers/net/at1700.c
@@ -350,13 +350,13 @@ static int __init at1700_probe1(struct net_device *dev, int ioaddr)
350 slot = -1; 350 slot = -1;
351 /* We must check for the EEPROM-config boards first, else accessing 351 /* We must check for the EEPROM-config boards first, else accessing
352 IOCONFIG0 will move the board! */ 352 IOCONFIG0 will move the board! */
353 if (at1700_probe_list[inb(ioaddr + IOCONFIG1) & 0x07] == ioaddr 353 if (at1700_probe_list[inb(ioaddr + IOCONFIG1) & 0x07] == ioaddr &&
354 && read_eeprom(ioaddr, 4) == 0x0000 354 read_eeprom(ioaddr, 4) == 0x0000 &&
355 && (read_eeprom(ioaddr, 5) & 0xff00) == 0xF400) 355 (read_eeprom(ioaddr, 5) & 0xff00) == 0xF400)
356 is_at1700 = 1; 356 is_at1700 = 1;
357 else if (inb(ioaddr + SAPROM ) == 0x00 357 else if (inb(ioaddr + SAPROM ) == 0x00 &&
358 && inb(ioaddr + SAPROM + 1) == 0x00 358 inb(ioaddr + SAPROM + 1) == 0x00 &&
359 && inb(ioaddr + SAPROM + 2) == 0x0e) 359 inb(ioaddr + SAPROM + 2) == 0x0e)
360 is_fmv18x = 1; 360 is_fmv18x = 1;
361 else { 361 else {
362 goto err_out; 362 goto err_out;
@@ -839,8 +839,8 @@ set_rx_mode(struct net_device *dev)
839 if (dev->flags & IFF_PROMISC) { 839 if (dev->flags & IFF_PROMISC) {
840 memset(mc_filter, 0xff, sizeof(mc_filter)); 840 memset(mc_filter, 0xff, sizeof(mc_filter));
841 outb(3, ioaddr + RX_MODE); /* Enable promiscuous mode */ 841 outb(3, ioaddr + RX_MODE); /* Enable promiscuous mode */
842 } else if (dev->mc_count > MC_FILTERBREAK 842 } else if (dev->mc_count > MC_FILTERBREAK ||
843 || (dev->flags & IFF_ALLMULTI)) { 843 (dev->flags & IFF_ALLMULTI)) {
844 /* Too many to filter perfectly -- accept all multicasts. */ 844 /* Too many to filter perfectly -- accept all multicasts. */
845 memset(mc_filter, 0xff, sizeof(mc_filter)); 845 memset(mc_filter, 0xff, sizeof(mc_filter));
846 outb(2, ioaddr + RX_MODE); /* Use normal mode. */ 846 outb(2, ioaddr + RX_MODE); /* Use normal mode. */