mtd: rawnand: Pass a nand_chip object to nand_scan()
Let's make the raw NAND API consistent by patching all helpers to take a nand_chip object instead of an mtd_info one. We start with nand_scan(). Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:

gecommit door
Miquel Raynal

bovenliggende
47bd59e538
commit
00ad378f30
@@ -2605,7 +2605,7 @@ static int marvell_nand_chip_init(struct device *dev, struct marvell_nfc *nfc,
|
||||
|
||||
chip->options |= NAND_BUSWIDTH_AUTO;
|
||||
|
||||
ret = nand_scan(mtd, marvell_nand->nsels);
|
||||
ret = nand_scan(chip, marvell_nand->nsels);
|
||||
if (ret) {
|
||||
dev_err(dev, "could not scan the nand chip\n");
|
||||
return ret;
|
||||
|
Verwijs in nieuw issue
Block a user