diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-19 10:40:00 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:41 -0700 |
commit | e2a7cfe9d5fce65789972a31ff50fb1d8d509848 (patch) | |
tree | 085b2ec36757a215d7f9ed647af5a5c6aa09f149 /drivers/mtd | |
parent | a53f6fad7ea20f6ccde21f68e3b44ab7fe8bf6cd (diff) | |
download | u-boot-e2a7cfe9d5fce65789972a31ff50fb1d8d509848.zip u-boot-e2a7cfe9d5fce65789972a31ff50fb1d8d509848.tar.gz u-boot-e2a7cfe9d5fce65789972a31ff50fb1d8d509848.tar.bz2 |
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')
-rw-r--r-- | drivers/mtd/nand/spi/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index fc9d4ed..ab9a24e 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); |