mtd: rawnand: Deprecate the dummy_controller field
We try to force NAND controller drivers to properly separate the NAND controller object from the NAND chip one, so let's deprecate the dummy controller object embedded in nand_chip to encourage them to create their own instance. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:

committed by
Miquel Raynal

parent
419e5b84a4
commit
7b6a9b28ec
@@ -1325,7 +1325,7 @@ int denali_init(struct denali_nand_info *denali)
|
||||
if (denali->clk_rate && denali->clk_x_rate)
|
||||
chip->options |= NAND_KEEP_TIMINGS;
|
||||
|
||||
chip->dummy_controller.ops = &denali_controller_ops;
|
||||
chip->legacy.dummy_controller.ops = &denali_controller_ops;
|
||||
ret = nand_scan(chip, denali->max_banks);
|
||||
if (ret)
|
||||
goto disable_irq;
|
||||
|
Reference in New Issue
Block a user