summaryrefslogtreecommitdiffstats
path: root/w39v040c.c
diff options
context:
space:
mode:
Diffstat (limited to 'w39v040c.c')
-rw-r--r--w39v040c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/w39v040c.c b/w39v040c.c
index f631d33..e7a2eb1 100644
--- a/w39v040c.c
+++ b/w39v040c.c
@@ -67,8 +67,8 @@ int erase_w39v040c(struct flashchip *flash)
erase_sector_jedec(flash->virtual_memory, i);
for (i = 0; i < total_size; i++)
- if (0xff != bios[i]) {
- printf("ERASE FAILED at 0x%08x! Expected=0xff, Read=0x%02x\n", i, bios[i]);
+ if (0xff != chip_readb(bios + i)) {
+ printf("ERASE FAILED at 0x%08x! Expected=0xff, Read=0x%02x\n", i, chip_readb(bios + i));
return -1;
}
OpenPOWER on IntegriCloud