mtd: rawnand: Get rid of chip->chipsize
The target size can now be returned by nanddev_get_targetsize(). Get rid of the chip->chipsize field and use this helper instead. Signed-off-by: Boris Brezillon <bbrezillon@kernel.org> Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:

committed by
Miquel Raynal

parent
298151689b
commit
6c836d515f
@@ -1134,7 +1134,6 @@ static int denali_multidev_fixup(struct denali_nand_info *denali)
|
||||
mtd->erasesize <<= 1;
|
||||
mtd->writesize <<= 1;
|
||||
mtd->oobsize <<= 1;
|
||||
chip->chipsize <<= 1;
|
||||
chip->page_shift += 1;
|
||||
chip->phys_erase_shift += 1;
|
||||
chip->bbt_erase_shift += 1;
|
||||
|
Reference in New Issue
Block a user