Skip to content

Commit

Permalink
clk: rockchip: allow more than 2 parents for cpuclk
Browse files Browse the repository at this point in the history
RK3228's armclk has 3 parents, so allow cpuclk to have
more than 2 parents.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
  • Loading branch information
Jeffy Chen authored and Heiko Stuebner committed Dec 9, 2015
1 parent 8ad0df3 commit ea03835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clk/rockchip/clk-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ struct clk *rockchip_clk_register_cpuclk(const char *name,
struct clk *clk, *cclk;
int ret;

if (num_parents != 2) {
pr_err("%s: needs two parent clocks\n", __func__);
if (num_parents < 2) {
pr_err("%s: needs at least two parent clocks\n", __func__);
return ERR_PTR(-EINVAL);
}

Expand Down

0 comments on commit ea03835

Please sign in to comment.