summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/cafe_nand.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-11-20 10:02:39 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-12-07 10:58:11 +0100
commit7b6a9b28ecf2fd2e2f5dcdb6d4fa8044b48bdb74 (patch)
treecc0ab7a04ae28e4afa7deae3832448f393a9d937 /drivers/mtd/nand/raw/cafe_nand.c
parent419e5b84a4be6c796e421b82e9673e2fa1ec1b07 (diff)
downloadlinux-7b6a9b28ecf2fd2e2f5dcdb6d4fa8044b48bdb74.tar.bz2
mtd: rawnand: Deprecate the dummy_controller field
We try to force NAND controller drivers to properly separate the NAND controller object from the NAND chip one, so let's deprecate the dummy controller object embedded in nand_chip to encourage them to create their own instance. 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/cafe_nand.c')
-rw-r--r--drivers/mtd/nand/raw/cafe_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/cafe_nand.c b/drivers/mtd/nand/raw/cafe_nand.c
index a85f5fa5c66d..b1c0cd6b49da 100644
--- a/drivers/mtd/nand/raw/cafe_nand.c
+++ b/drivers/mtd/nand/raw/cafe_nand.c
@@ -780,7 +780,7 @@ static int cafe_nand_probe(struct pci_dev *pdev,
cafe->usedma = 0;
/* Scan to find existence of the device */
- cafe->nand.dummy_controller.ops = &cafe_nand_controller_ops;
+ cafe->nand.legacy.dummy_controller.ops = &cafe_nand_controller_ops;
err = nand_scan(&cafe->nand, 2);
if (err)
goto out_irq;