It is useful to see the error code when this fails. Add logging for this
function.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 drivers/core/lists.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/core/lists.c b/drivers/core/lists.c
index 426444db3a9..e214306b904 100644
--- a/drivers/core/lists.c
+++ b/drivers/core/lists.c
@@ -251,7 +251,7 @@ int lists_bind_fdt(struct udevice *parent, ofnode node, 
struct udevice **devp,
                if (ret) {
                        dm_warn("Error binding driver '%s': %d\n", entry->name,
                                ret);
-                       return ret;
+                       return log_msg_ret("bind", ret);
                } else {
                        found = true;
                        if (devp)
-- 
2.29.2.684.gfbc64c5ab5-goog

Reply via email to