Skip to contentSkip to conversation

clk: qoriq: Improve an error message

PATCH Applied Dan Carpenter 2 participants 2 messages Feb 18, 2019 – Feb 22, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: qoriq: Improve an error message

We intended to print "ret" but there is a copy and paste bug from the previous error message.

---
 drivers/clk/clk-qoriq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/clk-qoriq.c +2 -2
index 0e84f6dfa54e..1212a9be7e80 100644
@@ -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);
 
 	}
 }
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw

Quoting Dan Carpenter (2019-02-18 01:19:06)

Quoted 5 lines

We intended to print "ret" but there is a copy and paste bug from the previous error message.

---

Applied to clk-next