summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-19 10:40:00 -0700
committerSimon Glass <sjg@chromium.org>2021-01-05 12:24:41 -0700
commite2a7cfe9d5fce65789972a31ff50fb1d8d509848 (patch)
tree085b2ec36757a215d7f9ed647af5a5c6aa09f149 /drivers/mtd/nand
parenta53f6fad7ea20f6ccde21f68e3b44ab7fe8bf6cd (diff)
downloadu-boot-e2a7cfe9d5fce65789972a31ff50fb1d8d509848.tar.gz
u-boot-e2a7cfe9d5fce65789972a31ff50fb1d8d509848.tar.xz
u-boot-e2a7cfe9d5fce65789972a31ff50fb1d8d509848.zip
spi: Tidy up get/set of device node
This code is a bit odd in that it only reads and updates the livetree version of the device ofnode. This means it won't work with flattree. Update the code to work as it was presumably intended. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/spi/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c
index fc9d4edbe0..ab9a24ed5b 100644
--- a/drivers/mtd/nand/spi/core.c
+++ b/drivers/mtd/nand/spi/core.c
@@ -1173,7 +1173,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->node);
#endif
ret = spinand_init(spinand);