From: Roger Quadros Date: Thu, 11 Jan 2024 13:19:19 +0000 (+0200) Subject: mtd: rawnand: omap_gpmc: fix OF based partition parsing for NAND X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=e76959aba50811c2aec70fe86561b7eaad85d0d6;p=u-boot.git mtd: rawnand: omap_gpmc: fix OF based partition parsing for NAND Set NAND chip ofnode and device so OF based partition parsing can work. Signed-off-by: Roger Quadros Link: https://www.mail-archive.com/u-boot@lists.denx.de/msg499178.html Signed-off-by: Dario Binacchi --- diff --git a/drivers/mtd/nand/raw/omap_gpmc.c b/drivers/mtd/nand/raw/omap_gpmc.c index c430f6d31c..2f8fa7d73d 100644 --- a/drivers/mtd/nand/raw/omap_gpmc.c +++ b/drivers/mtd/nand/raw/omap_gpmc.c @@ -1189,6 +1189,8 @@ static int gpmc_nand_probe(struct udevice *dev) base = devm_ioremap(dev, res.start, resource_size(&res)); gpmc_nand_init(nand, base); + mtd->dev = dev; + nand_set_flash_node(nand, dev_ofnode(dev)); ret = nand_scan(mtd, CONFIG_SYS_NAND_MAX_CHIPS); if (ret)