mtd: rawnand: plat_nand: Make use of the helper function devm_platform_ioremap_resource()
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:42:14 +0000 (15:42 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Sep 2021 17:34:54 +0000 (19:34 +0200)
commit7e2561430dff0a1bb9ab794e70fcaa56852e10f9
tree5b3fca6b7a2e0ada96bedcfc073809d56da28c25
parentf47dca43c51f6d1fa0cc1574badc748724d9286c
mtd: rawnand: plat_nand: 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/20210901074215.9383-1-caihuoqing@baidu.com
drivers/mtd/nand/raw/plat_nand.c