]> git.sur5r.net Git - u-boot/commit
CFI: fix eraseregions numblocks
authorLadislav Michl <ladis@linux-mips.org>
Thu, 28 Jan 2010 11:27:14 +0000 (12:27 +0100)
committerStefan Roese <sr@denx.de>
Tue, 2 Feb 2010 07:22:00 +0000 (08:22 +0100)
commitf3dec798d9ebf7f17c11ec7671b979ce3d251955
tree80c6d441932434899c0172e328bae99c1e6f6e62
parent9b208ece0a4e040774e24990b7cb6f0ad0ca4cc7
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>
drivers/mtd/cfi_mtd.c