diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-04-02 06:51:49 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-04-02 06:51:55 -0400 |
commit | 2a6ce1115b3cbe746965cfa0058ce645b6c1ada1 (patch) | |
tree | b0ac11bff5288b9376136a929991b6610083e1ce | |
parent | 0dcdbb172c2fdf60c5c578980308b312fd56496f (diff) |
sf: stmicro: use common page timeout define
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
CC: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
-rw-r--r-- | drivers/mtd/spi/stmicro.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |