summaryrefslogtreecommitdiffstats
path: root/82802ab.c
diff options
context:
space:
mode:
Diffstat (limited to '82802ab.c')
-rw-r--r--82802ab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/82802ab.c b/82802ab.c
index cdc3d73..1316939 100644
--- a/82802ab.c
+++ b/82802ab.c
@@ -97,7 +97,7 @@ int unlock_82802ab(struct flashchip *flash)
int i;
//chipaddr wrprotect = flash->virtual_registers + page + 2;
- for (i = 0; i < flash->total_size; i+= flash->page_size)
+ for (i = 0; i < flash->total_size * 1024; i+= flash->page_size)
{
chip_writeb(0, flash->virtual_registers + i + 2);
}
OpenPOWER on IntegriCloud