projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.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
|
history
diff --git
a/drivers/mtd/nand/nandsim.c
b/drivers/mtd/nand/nandsim.c
index
b28d760
..
b480516
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)