soc: mediatek: pwrap: Switch to devm_platform_ioremap_resource_byname()
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 17 May 2022 10:47:09 +0000 (12:47 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 7 Jun 2022 16:25:14 +0000 (18:25 +0200)
commite84187fa6f55caa897ee7d408046907a65e88a78
treee1100cb7f0da86110a27e0e1e9703b362de2e319
parent18c7deca2b812537aa4d928900e208710f1300aa
soc: mediatek: pwrap: Switch to devm_platform_ioremap_resource_byname()

In order to simplify ioremapping resources, instead of calling
platform_get_resource_byname() and then devm_ioremap_resource(),
simply call devm_platform_ioremap_resource_byname().

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20220517104712.24579-3-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c