]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/pic32_flash.c
dm: core: Replace of_offset with accessor
[u-boot] / drivers / mtd / pic32_flash.c
index 9166fcd9803f75a0376896632c4400f833c17b5f..8ed7874cc9f73523f34a1a9a37fedf3f7002d8c8 100644 (file)
@@ -371,7 +371,7 @@ static void pic32_flash_bank_init(flash_info_t *info,
 static int pic32_flash_probe(struct udevice *dev)
 {
        void *blob = (void *)gd->fdt_blob;
-       int node = dev->of_offset;
+       int node = dev_of_offset(dev);
        const char *list, *end;
        const fdt32_t *cell;
        unsigned long addr, size;