lkml.org 
[lkml]   [2003]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][2.5.69][PNP] Remove deprecated __check_region
Hi Adam

You are listed as the maintainer of the ISAPNP code in the Maintainers file.
Could you verify if this patch is fine and forward it to Linus. The patch
has been test for compilation.

Thanx

-- Bongani

--- linux-2.5/drivers/pnp/resource.c.orig 2003-05-06 22:43:52.000000000 +0200
+++ linux-2.5/drivers/pnp/resource.c 2003-05-06 22:51:41.000000000 +0200
@@ -295,7 +295,7 @@

/* check if the resource is already in use, skip if the device is active because it itself may be in use */
if(!dev->active) {
- if (check_region(*port, length(port,end)))
+ if (!request_region(*port, length(port,end), "pnp"))
return CONFLICT_TYPE_IN_USE;
}

@@ -366,7 +366,7 @@

/* check if the resource is already in use, skip if the device is active because it itself may be in use */
if(!dev->active) {
- if (__check_region(&iomem_resource, *addr, length(addr,end)))
+ if (!__request_region(&iomem_resource, *addr, length(addr,end), "pnp"))
return CONFLICT_TYPE_IN_USE;
}
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.065 / U:1.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site