diff --git a/flashrom.c b/flashrom.c index 68ef8f0d2ff328e29ca2cabffb537bfb35600e80..d60ffe568b2f18862daed3571664121273f4d209 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");