patch-2.3.99-pre3 linux/drivers/net/3c509.c

Next file: linux/drivers/net/3c515.c
Previous file: linux/drivers/isdn/isdn_v110.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/drivers/net/3c509.c linux/drivers/net/3c509.c
@@ -310,9 +310,11 @@
 			   with "nopnp=1" before, does not harm if not. */
 			idev->deactivate(idev);
 			idev->activate(idev);
-			if (!idev->resource[0].start || check_region(idev->resource[0].start,16))
+			if (!idev->resource[0].start || check_region(idev->resource[0].start, EL3_IO_EXTENT))
 				continue;
 			ioaddr = idev->resource[0].start;
+			if (!request_region(ioaddr, EL3_IO_EXTENT, "3c509 PnP"))
+				return -EBUSY;
 			irq = idev->irq_resource[0].start;
 			if (el3_debug > 3)
 				printk ("ISAPnP reports %s at i/o 0x%x, irq %d\n",

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)