summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nandsim.c
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-05-30 14:56:18 +0200
committerDavid Woodhouse <dwmw2@infradead.org>2008-06-04 18:47:35 +0200
commitaf3deccfa67341a9df39b6f734afcc85998ad4b7 (patch)
tree49af0438508d3b9933345d61c999b327212d0bcb /drivers/mtd/nand/nandsim.c
parent[MTD] [OneNAND] Check the ECC status first instead of controller (diff)
downloadlinux-af3deccfa67341a9df39b6f734afcc85998ad4b7.tar.xz
linux-af3deccfa67341a9df39b6f734afcc85998ad4b7.zip
[MTD] [NAND] nandsim: fix size bug
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index bb885d1fcab5..b28d76013ab6 100644
--- 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 {