Skip to content

Commit

Permalink
clk: rockchip: fix cpuclk registration error handling
Browse files Browse the repository at this point in the history
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: Lin Huang <lin.huang@rock-chips.com>
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
  • Loading branch information
Xing Zheng authored and Heiko Stuebner committed May 30, 2016

Unverified

No user is associated with the committer email.
1 parent 4715f81 commit 3183c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clk/rockchip/clk-cpu.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 3183c0d

Please sign in to comment.