Skip to content

Commit

Permalink
clk: at91: fix num_parents test in at91sam9260 slow clk implementation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Boris BREZILLON authored and Mike Turquette committed Sep 2, 2014
1 parent 69e273c commit e8531ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/at91/clk-slow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e8531ac

Please sign in to comment.