summaryrefslogtreecommitdiff
path: root/tests/mtd-tests/flash_readtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mtd-tests/flash_readtest.c')
-rw-r--r--tests/mtd-tests/flash_readtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mtd-tests/flash_readtest.c b/tests/mtd-tests/flash_readtest.c
index c5fabc9..b4f4e10 100644
--- a/tests/mtd-tests/flash_readtest.c
+++ b/tests/mtd-tests/flash_readtest.c
@@ -227,7 +227,7 @@ int main(int argc, char **argv)
puts("not NAND flash, assume page size is 512 bytes.");
pgsize = 512;
} else {
- pgsize = mtd.subpage_size;
+ pgsize = mtd.min_io_size;
}
pgcnt = mtd.eb_size / pgsize;