]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: rawnand: omap2: Use nand_controller_init()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Tue, 20 Nov 2018 10:57:18 +0000 (11:57 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 5 Feb 2019 14:39:40 +0000 (15:39 +0100)
commitefe5d132cb5089ec049ea8d95be8e4f01d3d3e0d
treeaaf58c6ce6573584693edba64e6740c52e9aa83a
parenta0916c94e9143e8aa0a1fe2a64794041657e99ac
mtd: rawnand: omap2: Use nand_controller_init()

Stop initializing omap_gpmc_controller fields are declaration time and
replace that by a call to nand_controller_init(). Since the same object
might be shared by several NAND chips and the NAND controller driver
expects a ->probe() per-chip, we need to keep track of the
omap_gpmc_controller state (whether it's already been initialized or
not).

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/omap2.c