diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-09-06 14:05:14 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-10-03 11:12:25 +0200 |
commit | 00ad378f304a091ab2e2df5f944892a6ed558610 (patch) | |
tree | 38759df7616e9c5763878f7496b2bfbf142a151c /drivers/mtd/nand/raw/denali.c | |
parent | 47bd59e538d4e7b3ad9c18bef5c1052657bdff59 (diff) | |
download | blackbird-op-linux-00ad378f304a091ab2e2df5f944892a6ed558610.tar.gz blackbird-op-linux-00ad378f304a091ab2e2df5f944892a6ed558610.zip |
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>
Diffstat (limited to 'drivers/mtd/nand/raw/denali.c')
-rw-r--r-- | drivers/mtd/nand/raw/denali.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/denali.c b/drivers/mtd/nand/raw/denali.c index 177453dfaa07..2e8a825c740e 100644 --- a/drivers/mtd/nand/raw/denali.c +++ b/drivers/mtd/nand/raw/denali.c @@ -1355,7 +1355,7 @@ int denali_init(struct denali_nand_info *denali) chip->setup_data_interface = denali_setup_data_interface; chip->dummy_controller.ops = &denali_controller_ops; - ret = nand_scan(mtd, denali->max_banks); + ret = nand_scan(chip, denali->max_banks); if (ret) goto disable_irq; |