Skip to content
Snippets Groups Projects
Commit d062482b authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 0bdce075
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,8 @@ int lists_bind_fdt(struct udevice *parent, const void *blob, int offset, ...@@ -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); dm_dbg(" - found match at '%s'\n", entry->name);
ret = device_bind(parent, entry, name, NULL, offset, &dev); ret = device_bind(parent, entry, name, NULL, offset, &dev);
if (ret) { if (ret) {
dm_warn("Error binding driver '%s'\n", entry->name); dm_warn("Error binding driver '%s': %d\n", entry->name,
ret);
return ret; return ret;
} else { } else {
dev->driver_data = id->data; dev->driver_data = id->data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment