From: Robert Marko Date: Wed, 5 Jan 2022 15:01:00 +0000 (+0100) Subject: mtd: nand: pxa3xx: set mtd->dev X-Git-Tag: v2022.04-rc1~25^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=429866e84559f7019f176c6c084392ec8dfd128c;p=pandora-u-boot.git mtd: nand: pxa3xx: set mtd->dev Currently the pxa3xx driver does not set the udevice in the mtd_info struct and this prevents the mtd from parsing the partitions via DTS like for SPI-NOR. So simply set the mtd->dev to the driver udevice. Signed-off-by: Robert Marko Reviewed-by: Stefan Roese --- diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c index 3a9c9ca508d..20d1aee7b3e 100644 --- a/drivers/mtd/nand/raw/pxa3xx_nand.c +++ b/drivers/mtd/nand/raw/pxa3xx_nand.c @@ -1913,6 +1913,7 @@ static int pxa3xx_nand_probe(struct udevice *dev) * user's mtd partitions configuration would get broken. */ mtd->name = "pxa3xx_nand-0"; + mtd->dev = dev; info->cs = cs; ret = pxa3xx_nand_scan(mtd); if (ret) {