mtd: call mtd_erase with complete area if possible
If a device does not have bad blocks loop over the eraseblocks
in the driver instead of the core. This allows the mtd_dataflash
driver to erase blocks instead of pages to gain more speed during
erasing. Also the mtd_dataflash driver modifies the erase_info
struct which causes the outer loop in the core to never end.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ecceaac commit 0d7ac7c3817e006cc4e258522a989642f1be1538
@Sascha Hauer Sascha Hauer authored on 24 May 2013
Showing 1 changed file
View
drivers/mtd/core.c