mtd: spi-nor: nxp-spifi: Make use of the helper function devm_platform_ioremap_resour...
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:43:06 +0000 (15:43 +0800)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 15 Oct 2021 08:58:50 +0000 (11:58 +0300)
commitdf872ab1ffe4bd865dfb5956cae4901429004ab6
treef07fc346662d33c90e105182b95d4f02c2f698e2
parenta10ed4c42533362a825be2adb2e5272d3644553e
mtd: spi-nor: nxp-spifi: Make use of the helper function 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: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Acked-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20210901074307.9733-1-caihuoqing@baidu.com
drivers/mtd/spi-nor/controllers/nxp-spifi.c