diff options
| author | Simon Glass <sjg@chromium.org> | 2020-12-19 10:40:14 -0700 | 
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:41 -0700 | 
| commit | f10643cf8a4ca006d1ad194e930cd292fd869d17 (patch) | |
| tree | 66cd9383fc5dbd8e02f999d1db5562995f441b21 /drivers/mtd/nand/spi | |
| parent | 7d14ee443ca674314e0fe5c3e25f48e52a8fd5ee (diff) | |
dm: core: Access device ofnode through functions
At present ofnode is present in the device even if it is never used. With
of-platdata this field is not used, so can be removed. In preparation for
this, change the access to go through inline functions.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mtd/nand/spi')
| -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 ab9a24ed5b5..cd12376ab82 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_ofnode(spinand, dev->node); +	spinand_set_ofnode(spinand, dev_ofnode(dev));  #endif  	ret = spinand_init(spinand); | 
