]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb41e233d06ad116362661e59ccc4826e92d61d25
treec01d5fa0126f6c0f1eea453e2f6eb38dc3acbc2c
parent4a500a27cd1076021364117e9833a793bbf6e3f0
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