Merge branch 'devel-stable' into devel
[linux-3.10.git] / arch / arm / common / clkdev.c
index dba4c1d..e2b2bb6 100644 (file)
@@ -53,12 +53,13 @@ static struct clk *clk_find(const char *dev_id, const char *con_id)
                                continue;
                        match += 1;
                }
-               if (match == 0)
-                       continue;
 
                if (match > best) {
                        clk = p->clk;
-                       best = match;
+                       if (match != 3)
+                               best = match;
+                       else
+                               break;
                }
        }
        return clk;