lkml.org 
[lkml]   [2003]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: 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/
\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.030 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site