mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
832685f07c
commit
5dcac2b9b3
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue