subsys: storage: flash_map - Use correct macro
Prior to this commit, the old `FLASH_DRIVER_NAME` macro was being used in the definition of the flash drivers array. This caused the array to have a size of 0. This commit changes the code to use the newer `FLASH_DEV_NAME` macro, causing the configured flash device to be present in the table. Signed-off-by: Christopher Collins <ccollins@apache.org>
This commit is contained in:
parent
c9a4fd94ba
commit
aa8850b42a
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ struct driver_map_entry {
|
|||
};
|
||||
|
||||
static const struct driver_map_entry flash_drivers_map[] = {
|
||||
#ifdef FLASH_DRIVER_NAME /* SoC embedded flash driver */
|
||||
#ifdef FLASH_DEV_NAME /* SoC embedded flash driver */
|
||||
{SOC_FLASH_0_ID, FLASH_DEV_NAME},
|
||||
#endif
|
||||
#ifdef CONFIG_SPI_FLASH_W25QXXDV
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue