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

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
...@@ -321,9 +321,9 @@ struct clk *rockchip_clk_register_cpuclk(const char *name, ...@@ -321,9 +321,9 @@ struct clk *rockchip_clk_register_cpuclk(const char *name,
} }
cclk = clk_register(NULL, &cpuclk->hw); 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); pr_err("%s: could not register cpuclk %s\n", __func__, name);
ret = PTR_ERR(clk); ret = PTR_ERR(cclk);
goto free_rate_table; goto free_rate_table;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment