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:
Родитель
68f37d8624
Коммит
cb545960de
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче