projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af3decc
)
[MTD] [NAND] nandsim: fix overridesize
author
Adrian Hunter
<ext-adrian.hunter@nokia.com>
Fri, 30 May 2008 12:56:23 +0000
(15:56 +0300)
committer
David Woodhouse
<dwmw2@infradead.org>
Wed, 4 Jun 2008 16:47:43 +0000
(17:47 +0100)
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/nandsim.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/nandsim.c
b/drivers/mtd/nand/nandsim.c
index b28d76013ab698a5aa812f54fd96c9d06520ea68..b480516847334bef4734821966d0e167b2543146 100644
(file)
--- a/
drivers/mtd/nand/nandsim.c
+++ b/
drivers/mtd/nand/nandsim.c
@@
-2022,6
+2022,7
@@
static int __init ns_init_module(void)
nsmtd->size = new_size;
chip->chipsize = new_size;
chip->chip_shift = ffs(new_size) - 1;
+ chip->pagemask = (chip->chipsize >> chip->page_shift) - 1;
}
if ((retval = setup_wear_reporting(nsmtd)) != 0)