mtd: rawnand: gpmi: Make use of the helper function devm_platform_ioremap_resource_by...
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:41:30 +0000 (15:41 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Sep 2021 17:34:39 +0000 (19:34 +0200)
commitfe6b7a9f9159a3a55f5227e03c97f65b4d81dc71
tree0a3ee865edd9394bcb7ed9183c653b612491779f
parent557de1cfabd6ea5476e5364a00d23d26bdfa3d4d
mtd: rawnand: gpmi: 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: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210901074130.9083-1-caihuoqing@baidu.com
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c