spi: img-spfi: Use devm_platform_get_and_ioremap_resource()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 19 Oct 2022 09:33:18 +0000 (17:33 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 19 Oct 2022 14:57:01 +0000 (15:57 +0100)
commita977c3a93fa9ed75fcd77b770c7e557d7b4f7bab
tree1689720688c410f97b9f94fd878cc73a161ebcb8
parent3be6acda8241352c57d47b4d7d9968cadcb954ea
spi: img-spfi: Use devm_platform_get_and_ioremap_resource()

Use the devm_platform_get_and_ioremap_resource() helper instead of calling
platform_get_resource() and devm_ioremap_resource() separately.

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