mtd: make pagetest work
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Nov 30 05:59:10 EST 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4c2b8a62bb0e35f2db0f713b4101b265be7fa985
Commit: 4c2b8a62bb0e35f2db0f713b4101b265be7fa985
Parent: daa0f15a8dc6ef81655c7853f84a3670be7d144a
Author: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
AuthorDate: Fri Nov 27 16:58:08 2009 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Nov 30 10:02:41 2009 +0000
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 at gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/tests/mtd_pagetest.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/tests/mtd_pagetest.c b/drivers/mtd/tests/mtd_pagetest.c
index 103cac4..ce17cbe 100644
--- a/drivers/mtd/tests/mtd_pagetest.c
+++ b/drivers/mtd/tests/mtd_pagetest.c
@@ -523,6 +523,7 @@ static int __init mtd_pagetest_init(void)
do_div(tmp, mtd->erasesize);
ebcnt = tmp;
pgcnt = mtd->erasesize / mtd->writesize;
+ pgsize = mtd->writesize;
printk(PRINT_PREF "MTD device size %llu, eraseblock size %u, "
"page size %u, count of eraseblocks %u, pages per "
More information about the linux-mtd-cvs
mailing list