]> git.sur5r.net Git - u-boot/commitdiff
dm: simple-bus: Add support for livetree
authorSimon Glass <sjg@chromium.org>
Fri, 19 May 2017 02:09:11 +0000 (20:09 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:09 +0000 (07:03 -0600)
Modify simple-bus to support livetree.

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

index a300217d39a898fa3f04fc3a4dc48445fe0a015b..14803e32b12f5a85ba6abb4bd0c0dea5c2bccf45 100644 (file)
@@ -33,8 +33,7 @@ static int simple_bus_post_bind(struct udevice *dev)
        u32 cell[3];
        int ret;
 
-       ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), "ranges",
-                                  cell, ARRAY_SIZE(cell));
+       ret = dev_read_u32_array(dev, "ranges", cell, ARRAY_SIZE(cell));
        if (!ret) {
                struct simple_bus_plat *plat = dev_get_uclass_platdata(dev);