aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-02-01 10:54:52 -0500
committerTom Rini <trini@konsulko.com>2022-02-01 10:54:52 -0500
commite291d3dc04e941fd06848156d9b0e96733654943 (patch)
treebd0fe51f2970f9747a3b4988a7a3cd9b83195372
parentdf887a045a1d726bbd654ef266e5cbe8cc0c2db3 (diff)
parent016e82d32200846ab52890efc79cb9f484950e7e (diff)
downloadu-boot-WIP/01Feb2022.zip
u-boot-WIP/01Feb2022.tar.gz
u-boot-WIP/01Feb2022.tar.bz2
Merge https://source.denx.de/u-boot/custodians/u-boot-cfi-flashWIP/01Feb2022
- cfi_mtd: populate mtd->dev with flash_info->dev (Patrice)
-rw-r--r--drivers/mtd/cfi_mtd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/cfi_mtd.c b/drivers/mtd/cfi_mtd.c
index f998ffa..bf4473b 100644
--- a/drivers/mtd/cfi_mtd.c
+++ b/drivers/mtd/cfi_mtd.c
@@ -221,6 +221,9 @@ int cfi_mtd_init(void)
continue;
sprintf(cfi_mtd_names[i], "nor%d", i);
+#ifdef CONFIG_CFI_FLASH
+ mtd->dev = fi->dev;
+#endif
mtd->name = cfi_mtd_names[i];
mtd->type = MTD_NORFLASH;
mtd->flags = MTD_CAP_NORFLASH;