mtd: rawnand: brcmnand: Use devm_platform_ioremap_resource_byname()
authorLi Zetao <lizetao1@huawei.com>
Wed, 2 Aug 2023 01:35:00 +0000 (09:35 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 4 Aug 2023 07:02:49 +0000 (09:02 +0200)
commit31cbe3a7e217ba8ec482ae821092e57d96275d5b
treebb224e9bd1c9c56179e86a97c067fcf9db824e17
parent4622daf4b5c89cd6a689910c523b8185b8a20338
mtd: rawnand: brcmnand: Use devm_platform_ioremap_resource_byname()

Convert platform_get_resource_byname() + devm_ioremap_resource() to a
single call to devm_platform_ioremap_resource_byname(), as this is
exactly what this function does.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230802013500.1030853-1-lizetao1@huawei.com
drivers/mtd/nand/raw/brcmnand/bcm63138_nand.c
drivers/mtd/nand/raw/brcmnand/iproc_nand.c