summaryrefslogtreecommitdiff
path: root/tests/mtd-tests/flash_stress.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mtd-tests/flash_stress.c')
-rw-r--r--tests/mtd-tests/flash_stress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mtd-tests/flash_stress.c b/tests/mtd-tests/flash_stress.c
index 249d8cb..b7a0fec 100644
--- a/tests/mtd-tests/flash_stress.c
+++ b/tests/mtd-tests/flash_stress.c
@@ -242,7 +242,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;