OSDN Git Service

mtd: rawnand: mtk_ecc: Make use of the helper function devm_platform_ioremap_resource()
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:41:52 +0000 (15:41 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Sep 2021 17:34:46 +0000 (19:34 +0200)
commit8826e1107236d8668cfbcf8b31caea3ac943de1e
treef23c78502115109a2cfb7b90959b55d0b0659a80
parent5da7bb27a582b8f232c09dd1067eb7a254c4d4ee
mtd: rawnand: mtk_ecc: 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/20210901074153.9233-1-caihuoqing@baidu.com
drivers/mtd/nand/raw/mtk_ecc.c