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:
83973b8
)
[MTD] [NAND] nandsim: fix size bug
author
Adrian Hunter
<ext-adrian.hunter@nokia.com>
Fri, 30 May 2008 12:56:18 +0000
(15:56 +0300)
committer
David Woodhouse
<dwmw2@infradead.org>
Wed, 4 Jun 2008 16:47:35 +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 bb885d1fcab5e9bbb87a085f0af76a76ea5e88bb..b28d76013ab698a5aa812f54fd96c9d06520ea68 100644
(file)
--- a/
drivers/mtd/nand/nandsim.c
+++ b/
drivers/mtd/nand/nandsim.c
@@
-511,7
+511,7
@@
static int init_nandsim(struct mtd_info *mtd)
}
if (ns->options & OPT_SMALLPAGE) {
- if (ns->geom.totsz < (32 << 20)) {
+ if (ns->geom.totsz <
=
(32 << 20)) {
ns->geom.pgaddrbytes = 3;
ns->geom.secaddrbytes = 2;
} else {