diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-02-11 23:03:53 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-02-11 23:03:53 +0000 |
commit | 48f1d73b5fc50a909f741d68119bcf02a8f2c331 (patch) | |
tree | 4c361bedb14d17961dbc58024e3a27c5fb40ce63 /flashrom.c | |
parent | f15e1abbaade215dd0318de881361a21f39ed9a6 (diff) | |
download | flashrom-48f1d73b5fc50a909f741d68119bcf02a8f2c331.tar.gz flashrom-48f1d73b5fc50a909f741d68119bcf02a8f2c331.tar.bz2 flashrom-48f1d73b5fc50a909f741d68119bcf02a8f2c331.zip |
At long last, the day has come, and we can bury full-chip erase once and for all
Back in November 2008(!) I proposed the first version of the flexible
sector-based erase structure, and now we can finally rip out the old
full-chip erase code without ill effects. Rejoice and party!
Thanks to everyone who made this possible, especially to Sean Nelson who
converted the majority of flash chips to sector erase.
Corresponding to flashrom svn r895.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/flashrom.c b/flashrom.c index 326f725a8..371060609 100644 --- a/flashrom.c +++ b/flashrom.c @@ -975,12 +975,6 @@ int erase_flash(struct flashchip *flash) if (!ret) break; } - /* If no block erase function was found or block erase failed, retry. */ - if ((!found || ret) && (flash->erase)) { - found = 1; - printf_debug("Trying whole-chip erase function... "); - ret = flash->erase(flash); - } if (!found) { fprintf(stderr, "ERROR: flashrom has no erase function for this flash chip.\n"); return 1; |