summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-02-11 23:03:53 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-02-11 23:03:53 +0000
commit48f1d73b5fc50a909f741d68119bcf02a8f2c331 (patch)
tree4c361bedb14d17961dbc58024e3a27c5fb40ce63 /flashrom.c
parentf15e1abbaade215dd0318de881361a21f39ed9a6 (diff)
downloadast2050-flashrom-48f1d73b5fc50a909f741d68119bcf02a8f2c331.zip
ast2050-flashrom-48f1d73b5fc50a909f741d68119bcf02a8f2c331.tar.gz
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.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/flashrom.c b/flashrom.c
index 326f725..3710606 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;
OpenPOWER on IntegriCloud