Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f71355b3 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Stephen Boyd
Browse files

clk: ti: Use of_clk_get_parent_count() instead of open coding

parent 0a65239c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);