Julia Lawall
c652759b6a
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 >
2011-02-16 13:05:54 +11:00
..
2011-01-14 16:36:19 +00:00
2011-02-16 13:05:54 +11:00
2010-12-10 15:20:15 -08:00
2011-01-13 20:15:35 -08:00
2010-10-27 18:03:15 -07:00
2010-12-24 15:59:06 +01:00
2010-10-27 18:03:15 -07:00
2011-01-10 09:46:24 +11:00
2010-10-22 10:52:56 -07:00
2010-11-17 08:59:32 -08:00
2010-10-24 13:41:39 -07:00
2010-10-27 18:03:14 -07:00
2010-03-30 22:02:32 +09:00
2010-10-15 15:53:27 +02:00
2010-11-17 08:59:32 -08:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:20:05 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2009-12-16 07:19:59 -08:00
2010-08-10 13:47:40 -07:00
2010-10-05 15:01:04 +02:00
2010-03-30 22:02:32 +09:00
2010-10-22 10:52:56 -07:00
2010-08-21 00:34:45 -07:00
2010-11-17 08:59:32 -08:00
2010-11-15 13:27:06 -08:00
2010-08-10 13:47:40 -07:00
2010-11-17 08:59:32 -08:00
2011-01-20 17:02:14 -08:00
2010-10-22 10:52:56 -07:00
2011-01-13 12:03:00 -08:00
2010-10-05 15:01:04 +02:00
2010-10-25 21:18:21 -04:00
2010-10-15 15:53:27 +02:00
2010-10-27 18:03:14 -07:00
2010-03-30 22:02:32 +09:00
2010-10-15 15:53:27 +02:00
2010-10-27 18:03:15 -07:00
2010-11-09 14:49:38 -08:00
2010-10-05 15:01:04 +02:00
2010-10-15 15:53:27 +02:00
2010-10-05 15:01:04 +02:00
2010-10-15 15:53:27 +02:00
2010-10-27 18:03:14 -07:00
2010-05-27 22:05:02 -04:00
2011-01-13 08:03:23 -08:00
2010-12-17 15:18:05 +01:00
2010-11-13 11:55:17 +01:00
2010-08-10 13:47:40 -07:00
2010-12-10 15:20:14 -08:00
2010-08-06 09:25:50 -06:00
2010-10-15 15:53:27 +02:00
2009-10-11 11:20:58 -07:00
2010-11-17 08:59:32 -08:00
2010-03-30 22:02:32 +09:00
2010-10-22 10:52:56 -07:00
2011-01-10 08:51:44 -08:00
2010-12-24 15:59:07 +01:00
2011-01-07 14:39:20 -08:00
2010-11-17 08:59:32 -08:00
2010-11-17 08:59:32 -08:00
2010-10-27 18:03:14 -07:00
2010-10-22 10:20:05 -07:00
2010-10-22 10:20:05 -07:00
2010-10-15 15:53:27 +02:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:52:56 -07:00
2010-10-22 10:20:02 -07:00
2010-11-17 08:59:32 -08:00
2010-10-22 10:52:56 -07:00
2010-03-30 22:02:32 +09:00