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

Commit e8531ac8 authored by Boris Brezillon's avatar Boris Brezillon Committed by Mike Turquette
Browse files

clk: at91: fix num_parents test in at91sam9260 slow clk implementation



The slow clk block provided by at91sam9260 and derived SoCs should always
have 2 parents.

Signed-off-by: default avatarBoris BREZILLON <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent 69e273c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -447,7 +447,7 @@ void __init of_at91sam9260_clk_slow_setup(struct device_node *np,
	int i;

	num_parents = of_count_phandle_with_args(np, "clocks", "#clock-cells");
	if (num_parents <= 0 || num_parents > 1)
	if (num_parents != 2)
		return;

	for (i = 0; i < num_parents; ++i) {