mtd: rawnand: tegra: Make use of the helper function devm_platform_ioremap_resource()
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:42:29 +0000 (15:42 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Sep 2021 17:34:59 +0000 (19:34 +0200)
commit2f597bc45e47e245e30265de8494423c3a1a7900
tree443eaf29600d354ef48e1720ce2741316b0bcb4c
parent8d77c55f090def05f450df8aa6ee16ec6f4d01ba
mtd: rawnand: tegra: 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>
Acked-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210901074230.9483-1-caihuoqing@baidu.com
drivers/mtd/nand/raw/tegra_nand.c