]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] [NAND] nandsim: fix overridesize
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Fri, 30 May 2008 12:56:23 +0000 (15:56 +0300)
committerDavid 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

index b28d76013ab698a5aa812f54fd96c9d06520ea68..b480516847334bef4734821966d0e167b2543146 100644 (file)
@@ -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)