* [PATCH] clk: qoriq: Improve an error message
@ 2019-02-18 9:19 Dan Carpenter
2019-02-22 18:00 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2019-02-18 9:19 UTC (permalink / raw)
To: Michael Turquette, Yuantian Tang; +Cc: Stephen Boyd, linux-clk, kernel-janitors
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>
---
drivers/clk/clk-qoriq.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c
index 0e84f6dfa54e..1212a9be7e80 100644
--- a/drivers/clk/clk-qoriq.c
+++ b/drivers/clk/clk-qoriq.c
@@ -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);
}
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clk: qoriq: Improve an error message
2019-02-18 9:19 [PATCH] clk: qoriq: Improve an error message Dan Carpenter
@ 2019-02-22 18:00 ` Stephen Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2019-02-22 18:00 UTC (permalink / raw)
To: Dan Carpenter, Michael Turquette, Yuantian Tang
Cc: linux-clk, kernel-janitors
Quoting Dan Carpenter (2019-02-18 01:19:06)
> 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>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-22 18:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-18 9:19 [PATCH] clk: qoriq: Improve an error message Dan Carpenter
2019-02-22 18:00 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).