]> git.sur5r.net Git - u-boot/blobdiff - drivers/power/pmic/s5m8767.c
dm: core: Replace of_offset with accessor
[u-boot] / drivers / power / pmic / s5m8767.c
index 075fe7e2f15c01acdd7da2597e56c4dc87272650..25d673b9981052cadd12e8c61fddd67315a4c215 100644 (file)
@@ -58,7 +58,7 @@ static int s5m8767_bind(struct udevice *dev)
        const void *blob = gd->fdt_blob;
        int children;
 
-       node = fdt_subnode_offset(blob, dev->of_offset, "regulators");
+       node = fdt_subnode_offset(blob, dev_of_offset(dev), "regulators");
        if (node <= 0) {
                debug("%s: %s regulators subnode not found!", __func__,
                      dev->name);