diff options
-rw-r--r-- | drivers/mtd/nand/nandsim.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index b28d76013ab6..b48051684733 100644 --- a/drivers/mtd/nand/nandsim.c +++ b/drivers/mtd/nand/nandsim.c | |||
@@ -2022,6 +2022,7 @@ static int __init ns_init_module(void) | |||
2022 | nsmtd->size = new_size; | 2022 | nsmtd->size = new_size; |
2023 | chip->chipsize = new_size; | 2023 | chip->chipsize = new_size; |
2024 | chip->chip_shift = ffs(new_size) - 1; | 2024 | chip->chip_shift = ffs(new_size) - 1; |
2025 | chip->pagemask = (chip->chipsize >> chip->page_shift) - 1; | ||
2025 | } | 2026 | } |
2026 | 2027 | ||
2027 | if ((retval = setup_wear_reporting(nsmtd)) != 0) | 2028 | if ((retval = setup_wear_reporting(nsmtd)) != 0) |