aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/common/clkdev.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/common/clkdev.c b/arch/arm/common/clkdev.c
index 6416d5b5020d..4f8390dd6cac 100644
--- a/arch/arm/common/clkdev.c
+++ b/arch/arm/common/clkdev.c
@@ -52,12 +52,13 @@ static struct clk *clk_find(const char *dev_id, const char *con_id)
52 continue; 52 continue;
53 match += 1; 53 match += 1;
54 } 54 }
55 if (match == 0)
56 continue;
57 55
58 if (match > best) { 56 if (match > best) {
59 clk = p->clk; 57 clk = p->clk;
60 best = match; 58 if (match != 3)
59 best = match;
60 else
61 break;
61 } 62 }
62 } 63 }
63 return clk; 64 return clk;