]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/power/pmic/max77686.c
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / drivers / power / pmic / max77686.c
index dc5a54a6a3aca82b229b03ae1710519f2581a013..8295fab3f02d4c162f3a60d0338614be6d170e62 100644 (file)
@@ -54,7 +54,7 @@ static int max77686_bind(struct udevice *dev)
        const void *blob = gd->fdt_blob;
        int children;
 
-       regulators_node = fdt_subnode_offset(blob, dev->of_offset,
+       regulators_node = fdt_subnode_offset(blob, dev_of_offset(dev),
                                             "voltage-regulators");
        if (regulators_node <= 0) {
                debug("%s: %s regulators subnode not found!", __func__,