Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
		}
	}