Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242758
b: refs/heads/master
c: 7b7e905
h: refs/heads/master
v: v3
  • Loading branch information
Roman Tereshonkov authored and David Woodhouse committed Mar 11, 2011
1 parent f46ee6f commit 5182e7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ee7451a023dd197fcfc1ba46dcce6d8ec5e1b78
refs/heads/master: 7b7e905ec2ec511e06279181ca95a892db21e292
10 changes: 5 additions & 5 deletions trunk/drivers/mtd/tests/mtd_subpagetest.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,11 @@ static int __init mtd_subpagetest_init(void)
}

subpgsize = mtd->writesize >> mtd->subpage_sft;
tmp = mtd->size;
do_div(tmp, mtd->erasesize);
ebcnt = tmp;
pgcnt = mtd->erasesize / mtd->writesize;

printk(PRINT_PREF "MTD device size %llu, eraseblock size %u, "
"page size %u, subpage size %u, count of eraseblocks %u, "
"pages per eraseblock %u, OOB size %u\n",
Expand All @@ -413,11 +418,6 @@ static int __init mtd_subpagetest_init(void)
goto out;
}

tmp = mtd->size;
do_div(tmp, mtd->erasesize);
ebcnt = tmp;
pgcnt = mtd->erasesize / mtd->writesize;

err = scan_for_bad_eraseblocks();
if (err)
goto out;
Expand Down

0 comments on commit 5182e7f

Please sign in to comment.