mtd: rawnand: denali: Make use of the helper function devm_platform_ioremap_resource_...
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 1 Sep 2021 07:41:15 +0000 (15:41 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 14 Sep 2021 17:34:34 +0000 (19:34 +0200)
commit5f14a8ca1b493a3c633ff549fb7d494887d7804a
treee4cb85f0e6e0efb0f63c41af973f2fa802337a8e
parentdf9e5170bc4d2d96a0c5dcfd3960c3e248a37218
mtd: rawnand: denali: Make use of the helper function devm_platform_ioremap_resource_byname()

Use the devm_platform_ioremap_resource_byname() helper instead of
calling platform_get_resource_byname() 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/20210901074116.8983-1-caihuoqing@baidu.com
drivers/mtd/nand/raw/denali_dt.c