]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: meson: refine resource getting in probe
authorLiang Yang <liang.yang@amlogic.com>
Wed, 7 Sep 2022 08:04:03 +0000 (16:04 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 21 Sep 2022 08:38:47 +0000 (10:38 +0200)
commite4645756488c0f5588b1bf13e301cd9b88f573f6
treeb52864ef0274df8e5428c8c1a18d63b3bf1905a7
parent3bbfd33bdb20ff62ff1cbe09ed0fe3cef8d5c08a
mtd: rawnand: meson: refine resource getting in probe

simply use devm_platform_ioremap_resource_byname() instead of two steps:
res = platform_get_resource(pdev, IORESOURCE_MEM, 0) and
reg_base = devm_ioremap_resource(dev, res)

Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220907080405.28240-4-liang.yang@amlogic.com
drivers/mtd/nand/raw/meson_nand.c