mtd: rawnand: mtk: Make use of the helper function devm_platform_ioremap_resource()
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:41:44 +0000 (15:41 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Sep 2021 17:34:44 +0000 (19:34 +0200)
commit5da7bb27a582b8f232c09dd1067eb7a254c4d4ee
tree8d76d7c79b9de3ff60329f4f7ba9b55909c99e60
parent1cda2633999a9431bc00d7881e2ea96cff5da22f
mtd: rawnand: mtk: Make use of the helper function devm_platform_ioremap_resource()

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

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210901074145.9183-1-caihuoqing@baidu.com
drivers/mtd/nand/raw/mtk_nand.c