Messages in this thread Patch in this message | | | Date | Fri, 18 Jul 2003 15:16:53 +0100 | From | Alan Cox <> | Subject | PATCH: make isapnp request its port properly |
| |
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test1/drivers/pnp/isapnp/core.c linux-2.6.0-test1-ac2/drivers/pnp/isapnp/core.c --- linux-2.6.0-test1/drivers/pnp/isapnp/core.c 2003-07-10 21:10:50.000000000 +0100 +++ linux-2.6.0-test1-ac2/drivers/pnp/isapnp/core.c 2003-07-14 19:56:48.000000000 +0100 @@ -255,14 +255,22 @@ static int isapnp_next_rdp(void) { int rdp = isapnp_rdp; + static int old_rdp = 0; + + if(old_rdp) + { + release_region(old_rdp, 1); + old_rdp = 0; + } while (rdp <= 0x3ff) { /* * We cannot use NE2000 probe spaces for ISAPnP or we * will lock up machines. */ - if ((rdp < 0x280 || rdp > 0x380) && !check_region(rdp, 1)) + if ((rdp < 0x280 || rdp > 0x380) && request_region(rdp, 1, "ISAPnP")) { isapnp_rdp = rdp; + old_rdp = rdp; return 0; } rdp += RDP_STEP; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |