From: Julia Lawall Date: Wed, 8 Jun 2011 13:00:55 +0000 (+0800) Subject: hwrng: nomadik - add missing clk_put X-Git-Tag: v3.1-rc1~266^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2725ae17591bf771608fe62c54f7b2badcf7492f;p=pandora-kernel.git hwrng: nomadik - add missing clk_put Jump to the end of the function for the clk_disable and clk_put rather than returning directly. 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 Signed-off-by: Matt Mackall Signed-off-by: Herbert Xu --- Reading git-diff-tree failed