Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>

authored by

Jeffy Chen and committed by
Heiko Stuebner
ea03835f 8ad0df33

+2 -2
+2 -2
drivers/clk/rockchip/clk-cpu.c
··· 242 242 struct clk *clk, *cclk; 243 243 int ret; 244 244 245 - if (num_parents != 2) { 246 - pr_err("%s: needs two parent clocks\n", __func__); 245 + if (num_parents < 2) { 246 + pr_err("%s: needs at least two parent clocks\n", __func__); 247 247 return ERR_PTR(-EINVAL); 248 248 } 249 249