Skip to content
Snippets Groups Projects
Commit 5dcac2b9 authored by Peng Fan's avatar Peng Fan Committed by Lukasz Majewski
Browse files

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: default avatarPeng Fan <peng.fan@nxp.com>
parent 832685f0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment