forked from luck/tmp_suning_uos_patched
clk: qoriq: Improve an error message
We intended to print "ret" but there is a copy and paste bug from the previous error message. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
bfeffd1552
commit
8f99f5eab0
|
@ -1148,8 +1148,8 @@ static void __init create_one_pll(struct clockgen *cg, int idx)
|
|||
pll->div[i].clk = clk;
|
||||
ret = clk_register_clkdev(clk, pll->div[i].name, NULL);
|
||||
if (ret != 0)
|
||||
pr_err("%s: %s: register to lookup table failed %ld\n",
|
||||
__func__, pll->div[i].name, PTR_ERR(clk));
|
||||
pr_err("%s: %s: register to lookup table failed %d\n",
|
||||
__func__, pll->div[i].name, ret);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user