mtd: rawnand: brcmnand: Allow platform data instantation
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 7 Jan 2022 18:46:12 +0000 (10:46 -0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sun, 23 Jan 2022 15:37:18 +0000 (16:37 +0100)
commit8e5913005f7bfcebd1c67df63fb63bcbb3bfc302
tree6d557dc5f6d6ba6ae05f5b1b59b17c81c10a18ca
parent02d1d0e4dfc3fdc5aa05b78e7def00dc1e62257e
mtd: rawnand: brcmnand: Allow platform data instantation

Make use of the recently refactored code in brcmnand_init_cs() and
derive the chip-select from the platform data that is supplied. Update
the various code paths to avoid relying on possibly non-existent
resources, too.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220107184614.2670254-8-f.fainelli@gmail.com
drivers/mtd/nand/raw/brcmnand/brcmnand.c