summaryrefslogtreecommitdiffstats
path: root/pm29f002.c
diff options
context:
space:
mode:
Diffstat (limited to 'pm29f002.c')
-rw-r--r--pm29f002.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pm29f002.c b/pm29f002.c
index 374582b..a01df88 100644
--- a/pm29f002.c
+++ b/pm29f002.c
@@ -27,7 +27,10 @@ int write_pm29f002(struct flashchip *flash, uint8_t *buf)
chipaddr dst = bios;
/* Pm29F002T/B use the same erase method... */
- erase_29f040b(flash);
+ if (erase_29f040b(flash)) {
+ fprintf(stderr, "ERASE FAILED!\n");
+ return -1;
+ }
printf("Programming page: ");
for (i = 0; i < total_size; i++) {
OpenPOWER on IntegriCloud