1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-21 01:51:11 +02:00

dm: core: Add logging on unbind failure

This failure path is tricky to debug since it continues after failure and
there are a lot of error paths. Add logging to help.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2020-03-28 14:03:47 -06:00
parent 0688b758a2
commit 8474da946f
2 changed files with 14 additions and 10 deletions

View File

@@ -120,10 +120,10 @@ int uclass_destroy(struct uclass *uc)
uclass_node);
ret = device_remove(dev, DM_REMOVE_NORMAL);
if (ret)
return ret;
return log_msg_ret("remove", ret);
ret = device_unbind(dev);
if (ret)
return ret;
return log_msg_ret("unbind", ret);
}
uc_drv = uc->uc_drv;