]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: sunxi-ng: Display index when clock registration fails
authorPriit Laes <plaes@plaes.org>
Wed, 5 Apr 2017 16:52:27 +0000 (19:52 +0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 6 Apr 2017 07:10:30 +0000 (09:10 +0200)
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>
drivers/clk/sunxi-ng/ccu_common.c

index 8a47bafd78905bce849235d791f1469d448afcc9..188fa50d0380b27174f6a6eadb3cb7937dc5b365 100644 (file)
@@ -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;
                }
        }