]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
clk: ti: Use of_clk_get_parent_count() instead of open coding
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 29 May 2015 09:25:47 +0000 (11:25 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 4 Jun 2015 20:51:37 +0000 (13:51 -0700)
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/ti/clockdomain.c

index 35fe1085480cf33da68547e76a7e126d5b95738b..b82ef07f340341052fa8a92ddacd8f65845ba843 100644 (file)
@@ -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);