mtd: rawnand: xway: Make use of the helper function devm_platform_ioremap_resource()
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:42:51 +0000 (15:42 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Sep 2021 17:35:06 +0000 (19:35 +0200)
commitabac656349cb9f081bc3b0a4c75d98486ade77f0
treeb258a8fc32d304f916630165aa8beb63b44a4095
parent2d77b08eaf0b2f269512c200c441bb1cda59d978
mtd: rawnand: xway: 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/20210901074252.9633-1-caihuoqing@baidu.com
drivers/mtd/nand/raw/xway_nand.c