remove call to check_region in drivers/pnp/resource.c
PATCH 1/1 remove call to check_region in drivers/pnp/resource.c
This patch removes a call to check_region in drivers/pnp/resource.c, and replaces it with request_region.
Signed-off-by Ameer Armaly <[email protected]>
pnp/resource.new renamed from pnp/resource.c +1 -1
@@ -252,7 +252,7 @@ int pnp_check_port(struct pnp_dev * dev, /* 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(&ioport_resource, *port, length(port,end))) return 0; }
Quoted 2 lines · Ameer Armaly
This patch removes a call to
check_regionindrivers/pnp/resource.c, and replaces it withrequest_region.
... and that replacement is correct, because...?