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>
This commit is contained in:
parent
68f37d8624
commit
cb545960de
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user