mtd: rawnand: lpc32xx_mlc: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Fri, 7 Jul 2023 04:06:11 +0000 (12:06 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 12 Jul 2023 12:07:52 +0000 (14:07 +0200)
commit9cd9dda8f06c9100997e981f11e8ef9cec042a95
treeb1ca6ea51cd3d7696aef8cc2f6a242d21f583f9c
parent68e10224a5ee9de5867152da8086acd543263c29
mtd: rawnand: lpc32xx_mlc: 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-7-frank.li@vivo.com
drivers/mtd/nand/raw/lpc32xx_mlc.c