Skip to content

Commit 8f99f5e

Browse files
Dan Carpenterbebarino
authored andcommitted
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>
1 parent bfeffd1 commit 8f99f5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/clk-qoriq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,8 +1148,8 @@ static void __init create_one_pll(struct clockgen *cg, int idx)
11481148
pll->div[i].clk = clk;
11491149
ret = clk_register_clkdev(clk, pll->div[i].name, NULL);
11501150
if (ret != 0)
1151-
pr_err("%s: %s: register to lookup table failed %ld\n",
1152-
__func__, pll->div[i].name, PTR_ERR(clk));
1151+
pr_err("%s: %s: register to lookup table failed %d\n",
1152+
__func__, pll->div[i].name, ret);
11531153

11541154
}
11551155
}

0 commit comments

Comments
 (0)