From: Julia Lawall Date: Wed, 1 Jun 2011 17:10:13 +0000 (+0000) Subject: drivers/video/pxa168fb.c: add missing clk_put X-Git-Tag: v3.0-rc3~53^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0057f1809d44b26765ec2374e0107a2f8ab256f5;p=pandora-kernel.git drivers/video/pxa168fb.c: add missing clk_put Add a label for error-handling code in the case where only clk_get has succeeded. Rename the label failed to be consistent with the rest. A simplified version of the semantic match that finds the missing clk_put 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: Paul Mundt --- Reading git-diff-tree failed