From f160a12938e363bccc3240dc0f5eb79bce1aa7bb Mon Sep 17 00:00:00 2001
From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Date: Fri, 8 May 2009 17:15:15 +0000
Subject: [PATCH] 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>
---
 flashrom.c | 2 ++
 1 file changed, 2 insertions(+)

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");
-- 
GitLab