diff options
Diffstat (limited to 'sst28sf040.c')
-rw-r--r-- | sst28sf040.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sst28sf040.c b/sst28sf040.c index a9a740cda..52e4256ea 100644 --- a/sst28sf040.c +++ b/sst28sf040.c @@ -119,7 +119,7 @@ static int erase_28sf040(struct flashctx *flash) int erase_chip_28sf040(struct flashctx *flash, unsigned int addr, unsigned int blocklen) { - if ((addr != 0) || (blocklen != flash->total_size * 1024)) { + if ((addr != 0) || (blocklen != flash->chip->total_size * 1024)) { msg_cerr("%s called with incorrect arguments\n", __func__); return -1; |