summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2017-04-05 18:52:27 +0200
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-04-06 09:10:30 +0200
commitcb545960dea2749771c88b0cb26e5adfd12a0315 (patch)
treed7f12845b1740efb26d01022b499b5025ecb1f2a /drivers/clk
parentclk: sunxi-ng: a33: Add offset and minimum value for DDR1 PLL N factor (diff)
downloadlinux-cb545960dea2749771c88b0cb26e5adfd12a0315.tar.xz
linux-cb545960dea2749771c88b0cb26e5adfd12a0315.zip
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')
-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;
}
}