Skip to content
Snippets Groups Projects
Commit f3dec798 authored by Ladislav Michl's avatar Ladislav Michl Committed by Stefan Roese
Browse files

CFI: fix eraseregions numblocks


eraseregions numblocks was sometimes one less than actual, possibly producing
erase regions with zero blocks. As MTD code touches eraseregions only if
numeraseregions is greater that zero, allocate eraseregions only for non
uniform erase size flash.

Signed-off-by: default avatarLadislav Michl <ladis@linux-mips.org>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 9b208ece
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment