OSDN Git Service

mtd: rawnand: atmel: Make use of the helper function devm_platform_ioremap_resource()
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:40:30 +0000 (15:40 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Sep 2021 17:34:30 +0000 (19:34 +0200)
commitc606d4f77c8a637c0563a206b080c5663f72b61a
treea043438a9991183e01761a4c03edc3698a579815
parenta2aec2c86ef0cad0fd6be718cfeb5cf5eefbfca9
mtd: rawnand: atmel: 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: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210901074031.8883-1-caihuoqing@baidu.com
drivers/mtd/nand/raw/atmel/pmecc.c