aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nandsim.c
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-05-30 08:56:23 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2008-06-04 12:47:43 -0400
commit07293b20083cb66df35bf2041f0c554eaac43e8c (patch)
treedc481086138e1d9106b3547ae9b4f13edff60b59 /drivers/mtd/nand/nandsim.c
parentaf3deccfa67341a9df39b6f734afcc85998ad4b7 (diff)
[MTD] [NAND] nandsim: fix overridesize
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nand/nandsim.c')
-rw-r--r--drivers/mtd/nand/nandsim.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index b28d76013ab6..b48051684733 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/drivers/mtd/nand/nandsim.c
@@ -2022,6 +2022,7 @@ static int __init ns_init_module(void)
2022 nsmtd->size = new_size; 2022 nsmtd->size = new_size;
2023 chip->chipsize = new_size; 2023 chip->chipsize = new_size;
2024 chip->chip_shift = ffs(new_size) - 1; 2024 chip->chip_shift = ffs(new_size) - 1;
2025 chip->pagemask = (chip->chipsize >> chip->page_shift) - 1;
2025 } 2026 }
2026 2027
2027 if ((retval = setup_wear_reporting(nsmtd)) != 0) 2028 if ((retval = setup_wear_reporting(nsmtd)) != 0)