diff options
Diffstat (limited to 'chip/lm4/flash.c')
-rw-r--r-- | chip/lm4/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/lm4/flash.c b/chip/lm4/flash.c index 4f7e905e21..5e0c6510f3 100644 --- a/chip/lm4/flash.c +++ b/chip/lm4/flash.c @@ -193,7 +193,7 @@ int flash_physical_protect_now(int all) if (all) { /* Protect the entire flash */ all_protected = 1; - protect_banks(0, CONFIG_FLASH_SIZE / + protect_banks(0, CONFIG_FLASH_SIZE_BYTES / CONFIG_FLASH_BANK_SIZE); } else /* Protect the WP region (read-only section and pstate) */ |