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

Commit ea03835f authored by Jeffy Chen's avatar Jeffy Chen Committed by Heiko Stuebner
Browse files

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: default avatarJeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 8ad0df33
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
	}