diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-11-20 10:02:39 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-12-07 10:58:11 +0100 |
commit | 7b6a9b28ecf2fd2e2f5dcdb6d4fa8044b48bdb74 (patch) | |
tree | cc0ab7a04ae28e4afa7deae3832448f393a9d937 /drivers/mtd/nand/raw/nandsim.c | |
parent | mtd: rawnand: vf610: Add an SPDX tag to replace the license text (diff) | |
download | linux-7b6a9b28ecf2fd2e2f5dcdb6d4fa8044b48bdb74.tar.xz linux-7b6a9b28ecf2fd2e2f5dcdb6d4fa8044b48bdb74.zip |
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/nandsim.c')
-rw-r--r-- | drivers/mtd/nand/raw/nandsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/nandsim.c b/drivers/mtd/nand/raw/nandsim.c index c452819f6123..2b3047d53558 100644 --- a/drivers/mtd/nand/raw/nandsim.c +++ b/drivers/mtd/nand/raw/nandsim.c @@ -2304,7 +2304,7 @@ static int __init ns_init_module(void) if ((retval = parse_gravepages()) != 0) goto error; - chip->dummy_controller.ops = &ns_controller_ops; + chip->legacy.dummy_controller.ops = &ns_controller_ops; retval = nand_scan(chip, 1); if (retval) { NS_ERR("Could not scan NAND Simulator device\n"); |