OpenCloudOS-Kernel/sound/soc/nuc900
Julia Lawall a2dc56c8a0 ASoC: add missing clk_put to nuc900-ac97
This goto is after the call to clk_get, so it should go to the label that
includes a call to 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>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-06-01 19:20:22 +01:00
..
Kconfig ASoC: NUC900/audio: add nuc900 audio driver support 2010-05-19 08:14:10 -07:00
Makefile ASoC: NUC900/audio: add nuc900 audio driver support 2010-05-19 08:14:10 -07:00
nuc900-ac97.c ASoC: add missing clk_put to nuc900-ac97 2011-06-01 19:20:22 +01:00
nuc900-audio.c ASoC: Do not include soc-dapm.h 2010-11-22 14:04:41 +00:00
nuc900-audio.h ASoC: Fix compile error for nuc900-pcm.c 2010-11-29 18:28:53 +00:00
nuc900-pcm.c ASoC: Fix missing spin_unlock_irqrestore 2010-11-30 11:09:24 +00:00