Commit 4c2b8a62 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by David Woodhouse

mtd: make pagetest work

The mtd_pagetest test did not initialize the pgsize variable, which
basically means it did not work. This problem was reported by
Török Edwin <edwintorok@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent daa0f15a
...@@ -523,6 +523,7 @@ static int __init mtd_pagetest_init(void) ...@@ -523,6 +523,7 @@ static int __init mtd_pagetest_init(void)
do_div(tmp, mtd->erasesize); do_div(tmp, mtd->erasesize);
ebcnt = tmp; ebcnt = tmp;
pgcnt = mtd->erasesize / mtd->writesize; pgcnt = mtd->erasesize / mtd->writesize;
pgsize = mtd->writesize;
printk(PRINT_PREF "MTD device size %llu, eraseblock size %u, " printk(PRINT_PREF "MTD device size %llu, eraseblock size %u, "
"page size %u, count of eraseblocks %u, pages per " "page size %u, count of eraseblocks %u, pages per "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment