mtd: spi-nor: hisi-sfc: Make use of the helper function devm_platform_ioremap_resourc...
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:42:59 +0000 (15:42 +0800)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 15 Oct 2021 08:56:44 +0000 (11:56 +0300)
commita10ed4c42533362a825be2adb2e5272d3644553e
tree86ba28d9e116c046059616439397579c8a97aa60
parent78e4d342187625585932bb437ec26e1060f7fc6f
mtd: spi-nor: hisi-sfc: 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/20210901074259.9683-1-caihuoqing@baidu.com
drivers/mtd/spi-nor/controllers/hisi-sfc.c