]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/video/pxa168fb.c: add missing clk_put
authorJulia Lawall <julia@diku.dk>
Wed, 1 Jun 2011 17:10:13 +0000 (17:10 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 2 Jun 2011 08:07:46 +0000 (17:07 +0900)
commit8b8a365ccd04e5ce61b9579cb37c3d7afff37391
treea707d902b457825cf0acf44dbcd312bf9983df86
parentf1647f28df1da2f35a53a54ea93af47b70e23fb6
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/)

// <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: Paul Mundt <lethal@linux-sh.org>
drivers/video/pxa168fb.c