aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/Kconfig
diff options
context:
space:
mode:
authorBoris Brezillon <bbrezillon@kernel.org>2018-10-25 22:10:36 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2019-04-08 10:21:12 +0200
commita7ab085d7c16a7367a0c93ee39d0750d23b537f9 (patch)
tree39e50627bc0391632a864c418756fac14ff9c0b1 /drivers/mtd/nand/raw/Kconfig
parentmtd: rawnand: Fill memorg during detection (diff)
downloadlinux-dev-a7ab085d7c16a7367a0c93ee39d0750d23b537f9.tar.xz
linux-dev-a7ab085d7c16a7367a0c93ee39d0750d23b537f9.zip
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/Kconfig1
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