diff options
Diffstat (limited to 'include/flash.h')
-rw-r--r-- | include/flash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/flash.h b/include/flash.h index 5fc6ae1055..7dfb309122 100644 --- a/include/flash.h +++ b/include/flash.h @@ -61,7 +61,7 @@ int flash_bank_erase_size(int bank); #else /* CONFIG_FLASH_MULTIPLE_REGION */ /* Number of physical flash banks */ #ifndef PHYSICAL_BANKS -#define PHYSICAL_BANKS (CONFIG_FLASH_SIZE_BYTES / CONFIG_FLASH_BANK_SIZE) +#define PHYSICAL_BANKS (CONFIG_FLASH_SIZE / CONFIG_FLASH_BANK_SIZE) #endif /* WP region offset and size in units of flash banks */ |