mtd: rawnand: Initialize the nand_device object
authorBoris Brezillon <bbrezillon@kernel.org>
Thu, 25 Oct 2018 20:10:36 +0000 (22:10 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Apr 2019 08:21:12 +0000 (10:21 +0200)
commita7ab085d7c16a7367a0c93ee39d0750d23b537f9
tree39e50627bc0391632a864c418756fac14ff9c0b1
parent629a442cad5facbebc204ff81e1974f8febab636
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>
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/nand_base.c