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 <[email protected]>
Signed-off-by: Xing Zheng <[email protected]>
Signed-off-by: Heiko Stuebner <[email protected]>
  • Loading branch information
acgzx authored and mmind committed May 30, 2016
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
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3183c0d

Please sign in to comment.