diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-18 20:09:05 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-01 07:03:08 -0600 |
commit | 396e343b3d03e3773edf4a39f49c7918d4b8ff91 (patch) | |
tree | ac38ebc93c2b49338cc7161f5e9ffbe2a461e9a8 /drivers/core/lists.c | |
parent | 47a0fd3bad3858ae2f58bc3b3368e16ed20f394c (diff) | |
download | u-boot-396e343b3d03e3773edf4a39f49c7918d4b8ff91.zip u-boot-396e343b3d03e3773edf4a39f49c7918d4b8ff91.tar.gz u-boot-396e343b3d03e3773edf4a39f49c7918d4b8ff91.tar.bz2 |
dm: core: Allow binding a device from a live tree
When a live tree is being used we need to record the node that was used to
create the device. Update device_bind_with_driver_data() to support this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/lists.c')
-rw-r--r-- | drivers/core/lists.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/lists.c b/drivers/core/lists.c index 72c55e2..9adfa75 100644 --- a/drivers/core/lists.c +++ b/drivers/core/lists.c @@ -177,7 +177,7 @@ int lists_bind_fdt(struct udevice *parent, const void *blob, int offset, dm_dbg(" - found match at '%s'\n", entry->name); ret = device_bind_with_driver_data(parent, entry, name, - id->data, offset, &dev); + id->data, offset_to_ofnode(offset), &dev); if (ret == -ENODEV) { dm_dbg("Driver '%s' refuses to bind\n", entry->name); continue; |