]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18d677504eb5deadcaf1deec2a91f7d8363fb83e
tree6d557dc5f6d6ba6ae05f5b1b59b17c81c10a18ca
parentadf8741d41b04204b356aeb3b19e6e9b678ff2c3
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