Skip to contentSkip to conversation

remove call to check_region in drivers/pnp/resource.c

PATCH In review Ameer Armaly 2 participants 2 messages Aug 20, 2005

lore
Share & tools
lore
#0 lore raw

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.

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;
 	}
 
#1 lore raw
Quoted 2 lines · Ameer Armaly

This patch removes a call to check_region in drivers/pnp/resource.c, and replaces it with request_region.

... and that replacement is correct, because...?