Skip to content

Commit e8531ac

Browse files
Boris BREZILLONMike Turquette
authored andcommitted
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: Boris BREZILLON <boris.brezillon@free-electrons.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
1 parent 69e273c commit e8531ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/clk/at91/clk-slow.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ void __init of_at91sam9260_clk_slow_setup(struct device_node *np,
447447
int i;
448448

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

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

0 commit comments

Comments
 (0)