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

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