summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-05-29 09:25:47 (GMT)
committerStephen Boyd <sboyd@codeaurora.org>2015-06-04 20:51:37 (GMT)
commitf71355b3d14421784f13c44b66fe0fbc7d3dbdb1 (patch)
tree8ddae35e472b489563db2258d99cb636fe12a930 /drivers/clk
parent0a65239c280bb0d56d8d84c4a9cc78bc68144925 (diff)
downloadlinux-f71355b3d14421784f13c44b66fe0fbc7d3dbdb1.tar.xz
clk: ti: Use of_clk_get_parent_count() instead of open coding
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/ti/clockdomain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/ti/clockdomain.c b/drivers/clk/ti/clockdomain.c
index 35fe108..b82ef07 100644
--- a/drivers/clk/ti/clockdomain.c
+++ b/drivers/clk/ti/clockdomain.c
@@ -32,7 +32,7 @@ static void __init of_ti_clockdomain_setup(struct device_node *node)
int i;
int num_clks;
- num_clks = of_count_phandle_with_args(node, "clocks", "#clock-cells");
+ num_clks = of_clk_get_parent_count(node);
for (i = 0; i < num_clks; i++) {
clk = of_clk_get(node, i);