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

Commit 3183c0d5 authored by Xing Zheng's avatar Xing Zheng Committed by Heiko Stuebner
Browse files

clk: rockchip: fix cpuclk registration error handling



It maybe due to a copy-paste error the error handing should be
cclk not clk when checking if the cpuclk registration succeeded.

Reported-by: default avatarLin Huang <lin.huang@rock-chips.com>
Signed-off-by: default avatarXing Zheng <zhengxing@rock-chips.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 4715f81a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -321,9 +321,9 @@ struct clk *rockchip_clk_register_cpuclk(const char *name,
	}

	cclk = clk_register(NULL, &cpuclk->hw);
	if (IS_ERR(clk)) {
	if (IS_ERR(cclk)) {
		pr_err("%s: could not register cpuclk %s\n", __func__,	name);
		ret = PTR_ERR(clk);
		ret = PTR_ERR(cclk);
		goto free_rate_table;
	}