mtd: rawnand: sh_flctl: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Fri, 7 Jul 2023 04:06:08 +0000 (12:06 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 12 Jul 2023 12:07:47 +0000 (14:07 +0200)
commit4eef841d29fac5fc8500668d1498a1ab8f9a91ce
treebba8de8869e18c959a1cc7e5fad06845145904ae
parentc96b3e0905b41cbf8e369faa1e4decded58860b5
mtd: rawnand: sh_flctl: Use devm_platform_get_and_ioremap_resource()

Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230707040622.78174-4-frank.li@vivo.com
drivers/mtd/nand/raw/sh_flctl.c