summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2011-02-13 13:12:11 +0100
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-05-10 15:43:30 -0700
commit0e8ede5351b53610363215f750e576ca1db1d0cd (patch)
tree632f1486569770166223247869bc821521cf8b80 /drivers/pci
parent83d74e036b94ffbf871667eede5ef02993709452 (diff)
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/) // <smpl> @@ expression x,E; @@ ( *x = request_region(...) | *x = request_mem_region(...) ) ... when != release_region(x) when != x = E * release_resource(x); // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
0 files changed, 0 insertions, 0 deletions