]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/x86/cpu/intel_common/lpc.c
dm: core: Replace of_offset with accessor
[people/ms/u-boot.git] / arch / x86 / cpu / intel_common / lpc.c
index 03cb45b636912ddc59407c89e7bc790dfb1f8e3f..696b6304fe1a4fd96fae03534f6f0ef30587763e 100644 (file)
@@ -50,7 +50,7 @@ int lpc_common_early_init(struct udevice *dev)
        int count;
        int i;
 
-       count = fdtdec_get_int_array_count(gd->fdt_blob, dev->of_offset,
+       count = fdtdec_get_int_array_count(gd->fdt_blob, dev_of_offset(dev),
                        "intel,gen-dec", (u32 *)values,
                        sizeof(values) / sizeof(u32));
        if (count < 0)