summaryrefslogtreecommitdiffstats
path: root/drivers/core/lists.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-17 16:11:06 -0700
committerBin Meng <bmeng.cn@gmail.com>2016-01-24 12:07:18 +0800
commitd062482b46b22d8c6b73ca69f2956282761981ce (patch)
tree6228aa8d758253c8cd0d1dd981edaca31916973f /drivers/core/lists.c
parent0bdce0751b789dea287f30fce272215a4dcd0ed2 (diff)
downloadtalos-obmc-uboot-d062482b46b22d8c6b73ca69f2956282761981ce.tar.gz
talos-obmc-uboot-d062482b46b22d8c6b73ca69f2956282761981ce.zip
dm: core: Display the error number when driver binding fails
This is often -96 (-EPFNOSUPPORT) which indicates that the uclass is not compiled in. Display the error number to make this easier to spot. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/core/lists.c')
-rw-r--r--drivers/core/lists.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/core/lists.c b/drivers/core/lists.c
index a1c94780dd..c4fc216340 100644
--- a/drivers/core/lists.c
+++ b/drivers/core/lists.c
@@ -172,7 +172,8 @@ int lists_bind_fdt(struct udevice *parent, const void *blob, int offset,
dm_dbg(" - found match at '%s'\n", entry->name);
ret = device_bind(parent, entry, name, NULL, offset, &dev);
if (ret) {
- dm_warn("Error binding driver '%s'\n", entry->name);
+ dm_warn("Error binding driver '%s': %d\n", entry->name,
+ ret);
return ret;
} else {
dev->driver_data = id->data;
OpenPOWER on IntegriCloud