mtd: rawnand: stm32_fmc2: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Fri, 7 Jul 2023 04:06:10 +0000 (12:06 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 12 Jul 2023 12:07:50 +0000 (14:07 +0200)
commit68e10224a5ee9de5867152da8086acd543263c29
treede76db3569d022690ef15898f636793ff7947e56
parent189175e0c3554434416e75d7687011ef6c185159
mtd: rawnand: stm32_fmc2: 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-6-frank.li@vivo.com
drivers/mtd/nand/raw/stm32_fmc2_nand.c