mtd: lantiq-flash: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Fri, 7 Jul 2023 04:06:18 +0000 (12:06 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 12 Jul 2023 12:08:24 +0000 (14:08 +0200)
commit6145e07e9c77a99cfe98f10b6544beef8026ce28
treed545332b3dc603c6fc9c0edb2d1dfee65dd4efa5
parent0e0d59f2f6ba8f26a16081fb76d301fc369cea36
mtd: lantiq-flash: 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-14-frank.li@vivo.com
drivers/mtd/maps/lantiq-flash.c