]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - drivers/mtd/nand/spi/core.c
Merge tag 'dm-pull-5jan21' of git://git.denx.de/u-boot-dm into next
[thirdparty/u-boot.git] / drivers / mtd / nand / spi / core.c
index 09bfde66853def948cab1f59b3a769468aff4663..68ef5d1af8dabb6b51e057ba60562df12f103ed1 100644 (file)
@@ -1165,7 +1165,7 @@ static int spinand_probe(struct udevice *dev)
                return -ENOMEM;
        sprintf(mtd->name, "spi-nand%d", spi_nand_idx++);
        spinand->slave = slave;
-       spinand_set_of_node(spinand, dev->node.np);
+       spinand_set_ofnode(spinand, dev_ofnode(dev));
 #endif
 
        ret = spinand_init(spinand);