summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index 68ef8f0..d60ffe5 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -236,6 +236,8 @@ int erase_flash(struct flashchip *flash)
fprintf(stderr, "ERROR: flashrom has no erase function for this flash chip.\n");
return 1;
}
+ flash->erase(flash);
+
if (!flash->read) {
printf("FAILED!\n");
fprintf(stderr, "ERROR: flashrom has no read function for this flash chip.\n");
OpenPOWER on IntegriCloud