mtd: nand: omap: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Thu, 13 Jul 2023 10:44:22 +0000 (18:44 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Sat, 15 Jul 2023 16:05:32 +0000 (18:05 +0200)
commitb798f7729ca66a620242435f0d325aefe0a13b31
tree82e4d88715ebe625cd43371a27d04251f4f2404b
parent717a53833d0b0d735df82f041d1d000afa768cf8
mtd: nand: omap: 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/20230713104422.29222-1-frank.li@vivo.com
drivers/mtd/nand/onenand/onenand_omap2.c