diff options
author | Adrian Hunter <ext-adrian.hunter@nokia.com> | 2008-05-30 15:56:18 +0300 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-06-04 17:47:35 +0100 |
commit | af3deccfa67341a9df39b6f734afcc85998ad4b7 (patch) | |
tree | 49af0438508d3b9933345d61c999b327212d0bcb /drivers/mtd | |
parent | 83973b87938a06a2af7e2a7fd1b630c35f8baff4 (diff) |
[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')
-rw-r--r-- | drivers/mtd/nand/nandsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index bb885d1fcab..b28d76013ab 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 { |