OSDN Git Service

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)
commit0057f1809d44b26765ec2374e0107a2f8ab256f5
treea707d902b457825cf0acf44dbcd312bf9983df86
parent609d3bbf044a6766f6505d8a29d4ed48020c014c
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