Skip to content

Commit

Permalink
[MTD] [NAND] nandsim: fix overridesize
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Adrian Hunter authored and David Woodhouse committed Jun 4, 2008
1 parent af3decc commit 07293b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/nand/nandsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 07293b2

Please sign in to comment.