diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-18 20:09:07 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-01 07:03:08 -0600 |
commit | 45a26867e8158d0338ba5b99d21989a72d423209 (patch) | |
tree | 76f30778dcb4a8d50eeea20e2bc68d2ab731c41c /drivers/cpu | |
parent | f5b5719cdf13f3ee1ae949a3bcffafb6431eead4 (diff) | |
download | u-boot-45a26867e8158d0338ba5b99d21989a72d423209.tar.gz u-boot-45a26867e8158d0338ba5b99d21989a72d423209.tar.bz2 u-boot-45a26867e8158d0338ba5b99d21989a72d423209.zip |
dm: core: Update device_bind_driver_to_node() to use ofnode
Adjust this function to us an ofnode instead of an offset, so it can be
used with livetree. This involves updating all callers.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/cpu')
-rw-r--r-- | drivers/cpu/cpu-uclass.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c index c57ac16b3a..73e4853939 100644 --- a/drivers/cpu/cpu-uclass.c +++ b/drivers/cpu/cpu-uclass.c @@ -63,11 +63,11 @@ U_BOOT_DRIVER(cpu_bus) = { static int uclass_cpu_init(struct uclass *uc) { struct udevice *dev; - int node; + ofnode node; int ret; - node = fdt_path_offset(gd->fdt_blob, "/cpus"); - if (node < 0) + node = ofnode_path("/cpus"); + if (!ofnode_valid(node)) return 0; ret = device_bind_driver_to_node(dm_root(), "cpu_bus", "cpus", node, |