commit | f3dec798d9ebf7f17c11ec7671b979ce3d251955 | [log] [tgz] |
---|---|---|
author | Ladislav Michl <ladis@linux-mips.org> | Thu Jan 28 12:27:14 2010 +0100 |
committer | Stefan Roese <sr@denx.de> | Tue Feb 02 08:22:00 2010 +0100 |
tree | 80c6d441932434899c0172e328bae99c1e6f6e62 | |
parent | 9b208ece0a4e040774e24990b7cb6f0ad0ca4cc7 [diff] |
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: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Stefan Roese <sr@denx.de>