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

From: Bongani Hlope (bonganilinux@mweb.co.za)
Date: Tue May 06 2003 - 16:18:22 EST


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



-
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/



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:28 EST