]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/core/simple-bus.c
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / drivers / core / simple-bus.c
index 5c955da3346b2c1ff665060100b2f875a87cbe50..6be269f273599cde53a085a0a0759b1cb787c08b 100644 (file)
@@ -30,7 +30,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, "ranges",
+       ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), "ranges",
                                   cell, ARRAY_SIZE(cell));
        if (!ret) {
                struct simple_bus_plat *plat = dev_get_uclass_platdata(dev);