drivers/net/a2065.c: Convert release_resource to release_region/release_mem_region
authorJulia Lawall <julia@diku.dk>
Tue, 22 Mar 2011 07:15:23 +0000 (07:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Mar 2011 21:10:37 +0000 (14:10 -0700)
commite6937ee626dee9c66ae820f5cca11efca2933845
treeb55904b3443913e4207a6ed0de500d1447b8ccdb
parent88e87be6ba528bd73522ecf0468fe32f1ee199e6
drivers/net/a2065.c: Convert release_resource to release_region/release_mem_region

Request_mem_region should be used with release_mem_region, not
release_resource.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,E;
@@
*x = request_mem_region(...)
... when != release_mem_region(x)
    when != x = E
* release_resource(x);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/a2065.c