Messages in this thread Patch in this message | | | Date | Mon, 13 Mar 2000 09:22:07 +0100 (CET) | From | Boszormenyi Zoltan <> | Subject | [PATCH] fix for PnP 3c509 |
| |
Hi!
Here is a little fix for 3c509.c. My PnP 3c509 was registered 8 times together with an oops. This was because the io area was not allocated for them. The attached patch fixes it and is against 2.3.51-pre2
Regards, Zoltan Boszormenyi --- linux/drivers/net/3c509.c.old Fri Mar 10 13:18:25 2000 +++ linux/drivers/net/3c509.c Sat Mar 11 09:44:55 2000 @@ -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", | |