clk: sunxi-ng: Display index when clock registration fails
Subsystems (2)
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.
Signed-off-by Priit Laes <[email protected]>
--- drivers/clk/sunxi-ng/ccu_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/sunxi-ng/ccu_common.c +2 -2
@@ -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
Maxime Ripard
AppliedQuoted 4 lines · Priit Laes
Add clock index to clock registration failure message. Clock name is sometimes not available, when things go really wrong.
Signed-off-by Priit Laes <[email protected]>
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>