mtd: rawnand: intel: Use devm_platform_ioremap_resource_byname()
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 2 Jul 2022 23:12:27 +0000 (01:12 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 20 Sep 2022 08:06:56 +0000 (10:06 +0200)
commit7471a53ddce54cee9b7a340dc930eb35b02c9eed
treec01d5fa0126f6c0f1eea453e2f6eb38dc3acbc2c
parent1b9bdc213cf8a917ad7eeedb39909dd928bd6678
mtd: rawnand: intel: Use devm_platform_ioremap_resource_byname()

Switch from open-coded platform_get_resource_byname() and
devm_ioremap_resource() to devm_platform_ioremap_resource_byname() where
possible to simplify the code.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220702231227.1579176-9-martin.blumenstingl@googlemail.com
drivers/mtd/nand/raw/intel-nand-controller.c