提交 ea03835f 编写于 作者: J Jeffy Chen 提交者: Heiko Stuebner

clk: rockchip: allow more than 2 parents for cpuclk

RK3228's armclk has 3 parents, so allow cpuclk to have
more than 2 parents.
Signed-off-by: NJeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: NHeiko Stuebner <heiko@sntech.de>
上级 8ad0df33
...@@ -242,8 +242,8 @@ struct clk *rockchip_clk_register_cpuclk(const char *name, ...@@ -242,8 +242,8 @@ struct clk *rockchip_clk_register_cpuclk(const char *name,
struct clk *clk, *cclk; struct clk *clk, *cclk;
int ret; int ret;
if (num_parents != 2) { if (num_parents < 2) {
pr_err("%s: needs two parent clocks\n", __func__); pr_err("%s: needs at least two parent clocks\n", __func__);
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册