- cfi_mtd: populate mtd->dev with flash_info->dev (Patrice)
This commit is contained in:
Tom Rini
2022-02-01 10:54:52 -05:00

View File

@@ -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;