diff options
Diffstat (limited to 'arch/arm/common/clkdev.c')
-rw-r--r-- | arch/arm/common/clkdev.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/common/clkdev.c b/arch/arm/common/clkdev.c index dba4c1da63ed..e2b2bb66e094 100644 --- a/arch/arm/common/clkdev.c +++ b/arch/arm/common/clkdev.c | |||
@@ -53,12 +53,13 @@ static struct clk *clk_find(const char *dev_id, const char *con_id) | |||
53 | continue; | 53 | continue; |
54 | match += 1; | 54 | match += 1; |
55 | } | 55 | } |
56 | if (match == 0) | ||
57 | continue; | ||
58 | 56 | ||
59 | if (match > best) { | 57 | if (match > best) { |
60 | clk = p->clk; | 58 | clk = p->clk; |
61 | best = match; | 59 | if (match != 3) |
60 | best = match; | ||
61 | else | ||
62 | break; | ||
62 | } | 63 | } |
63 | } | 64 | } |
64 | return clk; | 65 | return clk; |