patch-1.3.93 linux/drivers/net/3c509.c
Next file: linux/drivers/net/Makefile
Previous file: linux/drivers/isdn/teles/teles.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Sun Apr 21 11:13:48 1996
- Orig file:
v1.3.92/linux/drivers/net/3c509.c
- Orig date:
Fri Apr 5 13:35:28 1996
diff -u --recursive --new-file v1.3.92/linux/drivers/net/3c509.c linux/drivers/net/3c509.c
@@ -221,6 +221,7 @@
lrs_state = lrs_state & 0x100 ? lrs_state ^ 0xcf : lrs_state;
}
+ current_tag = dev->name[3]-'0';
/* For the first probe, clear all board's tag registers. */
if (current_tag == 0)
outb(0xd0, id_port);
@@ -265,6 +266,10 @@
/* Free the interrupt so that some other card can use it. */
outw(0x0f00, ioaddr + WN0_IRQ);
+
+ if( check_region(ioaddr, EL3_IO_EXTENT) )
+ return -ENODEV;
+
found:
dev->base_addr = ioaddr;
dev->irq = irq;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this