Skip to content

Commit

Permalink
clk: sunxi-ng: Display index when clock registration fails
Browse files Browse the repository at this point in the history
Add clock index to clock registration failure message. Clock name
is sometimes not available, when things go really wrong.

Signed-off-by: Priit Laes <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
  • Loading branch information
plaes authored and mripard committed Apr 6, 2017
1 parent 68f37d8 commit cb54596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clk/sunxi-ng/ccu_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit cb54596

Please sign in to comment.