mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
[MTD] [NAND] nandsim: fix overridesize
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
af3deccfa6
commit
07293b2008
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user