Re-add a line which got deleted in r473 by accident
Corresponding to flashrom svn r475.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
diff --git a/flashrom.c b/flashrom.c
index 68ef8f0..d60ffe5 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -236,6 +236,8 @@
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");