diff options
| author | Tom Rini <trini@konsulko.com> | 2022-02-01 10:54:52 -0500 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2022-02-01 10:54:52 -0500 |
| commit | e291d3dc04e941fd06848156d9b0e96733654943 (patch) | |
| tree | bd0fe51f2970f9747a3b4988a7a3cd9b83195372 /drivers | |
| parent | df887a045a1d726bbd654ef266e5cbe8cc0c2db3 (diff) | |
| parent | 016e82d32200846ab52890efc79cb9f484950e7e (diff) | |
Merge https://source.denx.de/u-boot/custodians/u-boot-cfi-flash
- cfi_mtd: populate mtd->dev with flash_info->dev (Patrice)
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mtd/cfi_mtd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/cfi_mtd.c b/drivers/mtd/cfi_mtd.c index f998ffaf26f..bf4473ba9e8 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; |
