diff options
Diffstat (limited to 'w39v040c.c')
-rw-r--r-- | w39v040c.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/w39v040c.c b/w39v040c.c index e7a2eb18f..f5d7a4efb 100644 --- a/w39v040c.c +++ b/w39v040c.c @@ -23,7 +23,7 @@ int probe_w39v040c(struct flashchip *flash) { - volatile uint8_t *bios = flash->virtual_memory; + chipaddr bios = flash->virtual_memory; uint8_t id1, id2, lock; chip_writeb(0xAA, bios + 0x5555); @@ -61,7 +61,7 @@ int erase_w39v040c(struct flashchip *flash) { int i; unsigned int total_size = flash->total_size * 1024; - volatile uint8_t *bios = flash->virtual_memory; + chipaddr bios = flash->virtual_memory; for (i = 0; i < total_size; i += flash->page_size) erase_sector_jedec(flash->virtual_memory, i); @@ -80,7 +80,7 @@ int write_w39v040c(struct flashchip *flash, uint8_t *buf) int i; int total_size = flash->total_size * 1024; int page_size = flash->page_size; - volatile uint8_t *bios = flash->virtual_memory; + chipaddr bios = flash->virtual_memory; if (flash->erase(flash)) return -1; |