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/nand_base.c | |
parent | 419e5b84a4be6c796e421b82e9673e2fa1ec1b07 (diff) | |
download | lwn-7b6a9b28ecf2fd2e2f5dcdb6d4fa8044b48bdb74.tar.gz lwn-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/nand_base.c')
-rw-r--r-- | drivers/mtd/nand/raw/nand_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 3fc5c00f8dba..cca4b24d2ffa 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -4419,9 +4419,9 @@ static void nand_shutdown(struct mtd_info *mtd) /* Set default functions */ static void nand_set_defaults(struct nand_chip *chip) { - /* If no controller is provided, use the dummy one. */ + /* If no controller is provided, use the dummy, legacy one. */ if (!chip->controller) { - chip->controller = &chip->dummy_controller; + chip->controller = &chip->legacy.dummy_controller; nand_controller_init(chip->controller); } |