diff options
author | Julia Lawall <julia@diku.dk> | 2011-02-16 13:05:54 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-02-16 13:05:54 +1100 |
commit | c652759b6a27be04ef5d747d81e8c36cde7f55d1 (patch) | |
tree | 646ef54e6d9970a91a855bc2883359711c71093b /crypto | |
parent | fc9044e2db8c13746cd886d6276028b27ed5c78e (diff) | |
download | linux-stable-c652759b6a27be04ef5d747d81e8c36cde7f55d1.tar.gz linux-stable-c652759b6a27be04ef5d747d81e8c36cde7f55d1.tar.bz2 linux-stable-c652759b6a27be04ef5d747d81e8c36cde7f55d1.zip |
hwrng: omap - Convert release_resource to release_region/release_mem_region
Request_region should be used with release_region, not release_resource.
The local variable mem, storing the result of request_mem_region, is
dropped and instead the pointer res is stored in the drvdata field of the
platform device. This information is retrieved in omap_rng_remove to
release the region. The drvdata field is not used elsewhere.
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: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions