From: Julia Lawall Date: Wed, 1 Jun 2011 17:10:05 +0000 (+0200) Subject: ASoC: add missing clk_put to nuc900-ac97 X-Git-Tag: v3.1-rc1~271^2~2^2~116 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2dc56c8a0009ba3879a26dfe416fc453fa2e32f;p=pandora-kernel.git 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/) // @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 // Signed-off-by: Julia Lawall Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed