From: Mike Frysinger Date: Thu, 2 Apr 2009 10:51:49 +0000 (-0400) Subject: sf: stmicro: use common page timeout define X-Git-Tag: v2009.06-rc1~106^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2a6ce1115b3cbe746965cfa0058ce645b6c1ada1;p=u-boot sf: stmicro: use common page timeout define Signed-off-by: Mike Frysinger CC: Haavard Skinnemoen --- diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c index e401cd07bc..b43e9f453a 100644 --- a/drivers/mtd/spi/stmicro.c +++ b/drivers/mtd/spi/stmicro.c @@ -295,8 +295,7 @@ int stmicro_erase(struct spi_flash *flash, u32 offset, size_t len) break; } - /* Up to 2 seconds */ - ret = stmicro_wait_ready(flash, 2 * CONFIG_SYS_HZ); + ret = stmicro_wait_ready(flash, SPI_FLASH_PAGE_ERASE_TIMEOUT); if (ret < 0) { debug("SF: STMicro page erase timed out\n"); break;