aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorRobert Marko <robert.marko@sartura.hr>2022-01-05 16:01:00 +0100
committerTom Rini <trini@konsulko.com>2022-01-17 14:45:24 -0500
commit429866e84559f7019f176c6c084392ec8dfd128c (patch)
tree551864e2c5f4ff29a7108c1241f55b422cd16f49 /drivers/mtd
parent4e81f3be340072ad2c0aac093677333702f14f22 (diff)
downloadu-boot-429866e84559f7019f176c6c084392ec8dfd128c.zip
u-boot-429866e84559f7019f176c6c084392ec8dfd128c.tar.gz
u-boot-429866e84559f7019f176c6c084392ec8dfd128c.tar.bz2
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 <robert.marko@sartura.hr> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/raw/pxa3xx_nand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c
index 3a9c9ca..20d1aee 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) {