]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: core: Add logging when lists_bind_fdt() fails
authorSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 17:40:18 +0000 (10:40 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:41 +0000 (12:24 -0700)
It is useful to see the error code when this fails. Add logging for this
function.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/lists.c

index 426444db3a9986e53b7f619b5007f7c32d19b744..e214306b904bc0032f333d7ad15a6ff74bde7ba3 100644 (file)
@@ -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)