spi: mxic: Use devm_platform_ioremap_resource_byname()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 29 Oct 2022 07:17:20 +0000 (15:17 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 31 Oct 2022 13:20:25 +0000 (13:20 +0000)
commit347ad8f295c66f3193d57cc5b69b6138f2e24231
treef3fe955383913f4dfdd07e9605e933f4029022c9
parent1793d36672eb8d86fb319cd28e056a154945506f
spi: mxic: Use devm_platform_ioremap_resource_byname()

Use the devm_platform_ioremap_resource_byname() helper instead of
calling platform_get_resource_byname() and devm_ioremap_resource()
separately.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221029071720.3041094-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mxic.c