]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: pxa3xx: set mtd->dev
authorRobert Marko <robert.marko@sartura.hr>
Wed, 5 Jan 2022 15:01:00 +0000 (16:01 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 17 Jan 2022 19:45:24 +0000 (14:45 -0500)
commit429866e84559f7019f176c6c084392ec8dfd128c
tree551864e2c5f4ff29a7108c1241f55b422cd16f49
parent4e81f3be340072ad2c0aac093677333702f14f22
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>
drivers/mtd/nand/raw/pxa3xx_nand.c