Commit ae5cf6e0 authored by Adam Belay's avatar Adam Belay

[PNP] /drivers/pnp/resource.c check_region warning fix

This patch resolves the compiler warning caused by the depreciated check_region
function.  It may not be the best solution but check_region really is what is
needed here because we never actually have to call "request_region".  If prefered,
I could alternatively request and release but doing so would be less efficient.
parent 40ca599a
...@@ -255,7 +255,7 @@ int pnp_check_port(struct pnp_dev * dev, int idx) ...@@ -255,7 +255,7 @@ int pnp_check_port(struct pnp_dev * dev, int idx)
/* check if the resource is already in use, skip if the /* check if the resource is already in use, skip if the
* device is active because it itself may be in use */ * device is active because it itself may be in use */
if(!dev->active) { if(!dev->active) {
if (check_region(*port, length(port,end))) if (__check_region(&ioport_resource, *port, length(port,end)))
return 0; return 0;
} }
...@@ -309,7 +309,7 @@ int pnp_check_mem(struct pnp_dev * dev, int idx) ...@@ -309,7 +309,7 @@ int pnp_check_mem(struct pnp_dev * dev, int idx)
/* check if the resource is already in use, skip if the /* check if the resource is already in use, skip if the
* device is active because it itself may be in use */ * device is active because it itself may be in use */
if(!dev->active) { if(!dev->active) {
if (__check_region(&iomem_resource, *addr, length(addr,end))) if (check_mem_region(*addr, length(addr,end)))
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment