OSDN Git Service

mtd: rawnand: stm32_fmc2: Make use of the helper function devm_platform_ioremap_resou...
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:42:22 +0000 (15:42 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Sep 2021 17:34:56 +0000 (19:34 +0200)
commit8d77c55f090def05f450df8aa6ee16ec6f4d01ba
treef91f1edb6ce3ef085f2653cbb8ec358a9161cb6c
parent7e2561430dff0a1bb9ab794e70fcaa56852e10f9
mtd: rawnand: stm32_fmc2: 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>
Reviewed-by: Christophe Kerello <christophe.kerello@foss.st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210901074222.9433-1-caihuoqing@baidu.com
drivers/mtd/nand/raw/stm32_fmc2_nand.c