]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: allocate model parameter dynamically
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 25 Jul 2018 13:31:51 +0000 (15:31 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 31 Jul 2018 07:46:14 +0000 (09:46 +0200)
commit00b614ff8c0da2f5927100a36e49145bab96233f
tree5d53702f9da4b77d8cfdd36e0bfb2b88aed18ea8
parent04907dbc3489a1f6add0a40bdd52982349e9f2f5
mtd: rawnand: allocate model parameter dynamically

Thanks to the migration of all drivers to use nand_scan() and the
related nand_controller_ops, we can now allocate data during the
detection phase. Let's do it first for the NAND model parameter which
is allocated in nand_detect().

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/rawnand.h