summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-05-30 12:56:18 (GMT)
committerDavid Woodhouse <dwmw2@infradead.org>2008-06-04 16:47:35 (GMT)
commitaf3deccfa67341a9df39b6f734afcc85998ad4b7 (patch)
tree49af0438508d3b9933345d61c999b327212d0bcb /drivers
parent83973b87938a06a2af7e2a7fd1b630c35f8baff4 (diff)
downloadlinux-af3deccfa67341a9df39b6f734afcc85998ad4b7.tar.xz
[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')
-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 bb885d1..b28d760 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 {