From: Julia Lawall Date: Sun, 13 Feb 2011 12:12:11 +0000 (+0100) Subject: x86/PCI: Convert release_resource to release_region/release_mem_region X-Git-Tag: v3.0-rc1~326^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e8ede5351b53610363215f750e576ca1db1d0cd;p=pandora-kernel.git x86/PCI: Convert release_resource to release_region/release_mem_region Request_region should be used with release_region, not release_resource. The local variables region and region2 are dropped and the calls to release_resource are replaced with calls to release_region, using the first two arguments of the corresponding calls to request_region. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,E; @@ ( *x = request_region(...) | *x = request_mem_region(...) ) ... when != release_region(x) when != x = E * release_resource(x); // Signed-off-by: Julia Lawall Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed