Commit cb545960 authored by Priit Laes's avatar Priit Laes Committed by Maxime Ripard

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: default avatarPriit Laes <plaes@plaes.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 68f37d86
...@@ -63,8 +63,8 @@ int sunxi_ccu_probe(struct device_node *node, void __iomem *reg, ...@@ -63,8 +63,8 @@ int sunxi_ccu_probe(struct device_node *node, void __iomem *reg,
ret = clk_hw_register(NULL, hw); ret = clk_hw_register(NULL, hw);
if (ret) { if (ret) {
pr_err("Couldn't register clock %s\n", pr_err("Couldn't register clock %d - %s\n",
clk_hw_get_name(hw)); i, clk_hw_get_name(hw));
goto err_clk_unreg; goto err_clk_unreg;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment