mtd: rawnand: omap2: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Fri, 7 Jul 2023 04:06:09 +0000 (12:06 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 12 Jul 2023 12:07:49 +0000 (14:07 +0200)
commit189175e0c3554434416e75d7687011ef6c185159
tree68d8f2bb27462297aaacb4f888336489705746e9
parent4eef841d29fac5fc8500668d1498a1ab8f9a91ce
mtd: rawnand: omap2: 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-5-frank.li@vivo.com
drivers/mtd/nand/raw/omap2.c