summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-qoriq.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-02-18 10:19:06 +0100
committerStephen Boyd <sboyd@kernel.org>2019-02-22 19:00:45 +0100
commit8f99f5eab06cc837e196f87d4b1e1d14e5f1efe3 (patch)
tree8beb495fe3e7d2bf1cae0faa469fd58a6f8cac59 /drivers/clk/clk-qoriq.c
parentLinux 5.0-rc1 (diff)
downloadlinux-8f99f5eab06cc837e196f87d4b1e1d14e5f1efe3.tar.xz
linux-8f99f5eab06cc837e196f87d4b1e1d14e5f1efe3.zip
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>
Diffstat (limited to 'drivers/clk/clk-qoriq.c')
-rw-r--r--drivers/clk/clk-qoriq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c
index 5baa9e051110..a81995c262ac 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);
}
}