linux/drivers/char/hw_random
Julia Lawall 6ba1a31ef1 hwrng: omap - add missing clk_put
Convert a return to a jump to an existing label that calls clk_put.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r exists@
expression e1,e2;
statement S;
@@

e1 = clk_get@p1(...);
... when != e1 = e2
    when != clk_put(e1)
    when any
if (...) { ... when != clk_put(e1)
               when != if (...) { ... clk_put(e1) ... }
* return@p3 ...;
 } else S
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2011-06-30 07:44:01 +08:00
..
amd-rng.c hwrng: amd - manage resource allocation 2011-05-04 15:13:15 +10:00
core.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
geode-rng.c hwrng: Use PCI_VDEVICE 2009-06-25 13:50:53 +08:00
intel-rng.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ixp4xx-rng.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
Kconfig hwrng: amd - enable AMD hw rnd driver for Maple PPC boards 2011-05-04 15:13:16 +10:00
Makefile hwrng: pixocell - add support for picoxcell TRNG 2011-01-23 18:59:19 +11:00
mxc-rnga.c i.MX31: Add hw-random for RNGA 2009-05-07 16:17:16 +02:00
n2-asm.S sparc64: Add Niagara2 RNG driver. 2008-07-18 00:46:09 -07:00
n2-drv.c drivercore: revert addition of of_match to struct device 2011-05-18 12:32:23 -06:00
n2rng.h of/device: Replace struct of_device with struct platform_device 2010-08-06 09:25:50 -06:00
nomadik-rng.c ARM: amba: make probe() functions take const id tables 2011-02-23 16:24:14 +00:00
octeon-rng.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
omap-rng.c hwrng: omap - add missing clk_put 2011-06-30 07:44:01 +08:00
pasemi-rng.c dt/powerpc: Eliminate users of of_platform_{,un}register_driver 2011-02-28 01:36:39 -07:00
picoxcell-rng.c hwrng: pixocell - add support for picoxcell TRNG 2011-01-23 18:59:19 +11:00
timeriomem-rng.c hwrng: timeriomem - Fix potential oops (request_mem_region/__devinit) 2009-06-03 19:28:03 +10:00
tx4939-rng.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
via-rng.c hwrng: via_rng - Fix memory scribbling on some CPUs 2011-01-07 14:55:06 +11:00
virtio-rng.c virtio-rng: use virtqueue_xxx wrappers 2010-05-19 22:15:45 +09:30