Message ID | 1464270549-12713-1-git-send-email-zhengxing@rock-chips.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Am Donnerstag, 26. Mai 2016, 21:49:08 schrieb Xing Zheng: > It maybe due to a copy-paste error the error handing should be > cclk not clk. > > Reported-by: Lin Huang <lin.huang@rock-chips.com> > Signed-off-by: Xing Zheng <zhengxing@rock-chips.com> applied to my clk-fixes branch after adapting the commit message a bit. Thanks for catching that Heiko -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/clk/rockchip/clk-cpu.c b/drivers/clk/rockchip/clk-cpu.c index 4bb130c..05b3d73 100644 --- a/drivers/clk/rockchip/clk-cpu.c +++ b/drivers/clk/rockchip/clk-cpu.c @@ -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; }
It maybe due to a copy-paste error the error handing should be cclk not clk. Reported-by: Lin Huang <lin.huang@rock-chips.com> Signed-off-by: Xing Zheng <zhengxing@rock-chips.com> --- drivers/clk/rockchip/clk-cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)