[PATCH][2.5.69][PNP] Remove deprecated __check_region

Bongani Hlope (bonganilinux@mweb.co.za)
Tue, 6 May 2003 23:18:22 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-7097-1052256045-0001-2
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

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;
}

--=_courier-7097-1052256045-0001-2
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+uCan+pvEqv8+FEMRAo44AJ44rgNryrUXiAPHhtecGGNfJ/W7zQCfULIb
y7++EPUFhLIlrNVIoXQfbxI=
=fYPn
-----END PGP SIGNATURE-----

--=_courier-7097-1052256045-0001-2--