]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/cfi_flash.c
dm: core: Replace of_offset with accessor
[u-boot] / drivers / mtd / cfi_flash.c
index e036b88a6256c5752021af6351da6d0185a383b1..d440f5ccd96d07816ca2be3b16cb401db0a9a638 100644 (file)
@@ -2441,7 +2441,7 @@ unsigned long flash_init (void)
 static int cfi_flash_probe(struct udevice *dev)
 {
        void *blob = (void *)gd->fdt_blob;
-       int node = dev->of_offset;
+       int node = dev_of_offset(dev);
        const fdt32_t *cell;
        phys_addr_t addr;
        int parent, addrc, sizec;