Skip to contentSkip to conversation

clk: sunxi-ng: Display index when clock registration fails

PATCH Applied Priit Laes 2 participants 2 messages Apr 5, 2017 – Apr 6, 2017

Subsystems (2)
lore
Share & tools
lore

Priit Laes

author
#0 lore raw

PATCH 1/1 clk: sunxi-ng: Display index when clock registration fails

Add clock index to clock registration failure message. Clock name is sometimes not available, when things go really wrong.

---
 drivers/clk/sunxi-ng/ccu_common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/sunxi-ng/ccu_common.c +2 -2
index 8a47baf..188fa50 100644
@@ -63,8 +63,8 @@ int sunxi_ccu_probe(struct device_node *node, void __iomem *reg,
 
 		ret = clk_hw_register(NULL, hw);
 		if (ret) {
-			pr_err("Couldn't register clock %s\n",
-			       clk_hw_get_name(hw));
+			pr_err("Couldn't register clock %d - %s\n",
+			       i, clk_hw_get_name(hw));
 			goto err_clk_unreg;
 		}
 	}
Signature · 1 line
2.9.3
#1 lore raw
Quoted 4 lines · Priit Laes

Add clock index to clock registration failure message. Clock name is sometimes not available, when things go really wrong.

Applied, thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170406/77046f9f/attachment.sig>