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>
This commit is contained in:
parent
0a65239c28
commit
f71355b3d1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user