[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 8 Aug 2011 23:38:21 +0800
From: stufever@...il.com
To: linux-kernel@...r.kernel.org
Cc: abelay@....edu, bhelgaas@...gle.com,
Wang Shaoyan <wangshaoyan.pt@...bao.com>
Subject: [PATCH] pnp: replace deprecated __check_region to request_region
From: Wang Shaoyan <wangshaoyan.pt@...bao.com>
The function __check_region is deprecated, use proper function request_region to replace it.
Signed-off-by: Wang Shaoyan <wangshaoyan.pt@...bao.com>
---
drivers/pnp/resource.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c
index b0ecacb..b1d8cae 100644
--- a/drivers/pnp/resource.c
+++ b/drivers/pnp/resource.c
@@ -179,7 +179,7 @@ int pnp_check_port(struct pnp_dev *dev, struct resource *res)
/* 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(&ioport_resource, *port, length(port, end)))
+ if (!request_region(*port, length(port, end), "pnp"))
return 0;
}
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists