summaryrefslogtreecommitdiff
path: root/drivers/clk/sunxi-ng
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2017-04-05 19:52:27 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-04-06 10:10:30 +0300
commitcb545960dea2749771c88b0cb26e5adfd12a0315 (patch)
treed7f12845b1740efb26d01022b499b5025ecb1f2a /drivers/clk/sunxi-ng
parent68f37d862403e8f95337b2eca90af15d0b8cd5d7 (diff)
downloadlinux-cb545960dea2749771c88b0cb26e5adfd12a0315.tar.xz
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 <plaes@plaes.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/clk/sunxi-ng')
-rw-r--r--drivers/clk/sunxi-ng/ccu_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/sunxi-ng/ccu_common.c b/drivers/clk/sunxi-ng/ccu_common.c
index 8a47bafd7890..188fa50d0380 100644
--- a/drivers/clk/sunxi-ng/ccu_common.c
+++ b/drivers/clk/sunxi-ng/ccu_common.c
@@ -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;
}
}