diff options
author | Boris Brezillon <bbrezillon@kernel.org> | 2018-10-25 23:10:36 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-04-08 11:21:12 +0300 |
commit | a7ab085d7c16a7367a0c93ee39d0750d23b537f9 (patch) | |
tree | 39e50627bc0391632a864c418756fac14ff9c0b1 /drivers/mtd/nand/raw/Kconfig | |
parent | 629a442cad5facbebc204ff81e1974f8febab636 (diff) | |
download | linux-a7ab085d7c16a7367a0c93ee39d0750d23b537f9.tar.xz |
mtd: rawnand: Initialize the nand_device object
In order to use some of the nanddev_xxx() helpers, we need to
initialize the nand_device object embedded in nand_chip using
nanddev_init(). This requires implementing nand_ops.
We also drop useless mtd->xxx initialization when they're already taken
case of by nanddev_init().
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Diffstat (limited to 'drivers/mtd/nand/raw/Kconfig')
-rw-r--r-- | drivers/mtd/nand/raw/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index 705863c6709a..80b5fec1f75a 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/drivers/mtd/nand/raw/Kconfig @@ -14,6 +14,7 @@ menuconfig MTD_NAND tristate "Raw/Parallel NAND Device Support" depends on MTD select MTD_NAND_ECC + select MTD_NAND_CORE help This enables support for accessing all type of raw/parallel NAND flash devices. For further information see |