aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-10-22 03:31:08 +0000
committerLukasz Majewski <lukma@denx.de>2020-01-26 12:03:06 +0100
commit5dcac2b9b3bd14748b68cadd3f855369c8926f05 (patch)
treeed5087225d7406d3b150eb58ef5097011d846ff0 /drivers/clk/clk.c
parent832685f07c75388e4f268d15536c988cc345b5a1 (diff)
downloadu-boot-5dcac2b9b3bd14748b68cadd3f855369c8926f05.zip
u-boot-5dcac2b9b3bd14748b68cadd3f855369c8926f05.tar.gz
u-boot-5dcac2b9b3bd14748b68cadd3f855369c8926f05.tar.bz2
clk: show more error info when uclass_get_device_by_name
It will ease debug when uclass_get_device_by_name failed with more error info printed out. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 1cf9987..4c477a4 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -20,8 +20,10 @@ int clk_register(struct clk *clk, const char *drv_name,
int ret;
ret = uclass_get_device_by_name(UCLASS_CLK, parent_name, &parent);
- if (ret)
- printf("%s: UCLASS parent: 0x%p\n", __func__, parent);
+ if (ret) {
+ printf("%s: name: %s parent: %s [0x%p]\n",
+ __func__, name, parent->name, parent);
+ }
debug("%s: name: %s parent: %s [0x%p]\n", __func__, name, parent->name,
parent);