diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-11-27 15:58:08 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-11-30 11:02:41 +0100 |
commit | 4c2b8a62bb0e35f2db0f713b4101b265be7fa985 (patch) | |
tree | a54fe210dd515ea52cfd8bb18efb704623bbd373 /drivers/mtd/tests | |
parent | mtd: don't use __exit_p to wrap mxcnd_remove (diff) | |
download | linux-4c2b8a62bb0e35f2db0f713b4101b265be7fa985.tar.xz linux-4c2b8a62bb0e35f2db0f713b4101b265be7fa985.zip |
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: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/tests')
-rw-r--r-- | 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 103cac480fee..ce17cbe918c5 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 " |