diff options
author | Simon Glass <sjg@chromium.org> | 2020-03-28 23:03:47 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-16 17:07:58 +0300 |
commit | 8474da946f58a127b2006c526ae6f9b5a968d422 (patch) | |
tree | 8bfc9754215e9fbdf9701bd3efaa9b74e28c9ebe /drivers/core/uclass.c | |
parent | 0688b758a2c2d3c56dd46ceb6c78ebf29867cc57 (diff) | |
download | u-boot-8474da946f58a127b2006c526ae6f9b5a968d422.tar.xz |
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>
Diffstat (limited to 'drivers/core/uclass.c')
-rw-r--r-- | drivers/core/uclass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index 58b19a4210..b24b677c55 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -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; |