soc: mediatek: mmsys: Use devm_platform_ioremap_resource()
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 6 Oct 2020 19:33:18 +0000 (21:33 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 27 Nov 2020 23:37:12 +0000 (00:37 +0100)
commitcc6576029aedc79ce87b9fcb22cbd396d47f2852
tree28298faf5f7173668f58ec99af9c69f6f5c69f9e
parent51c0e618b219c025ddaaf14baea8942cb7e2105b
soc: mediatek: mmsys: Use devm_platform_ioremap_resource()

For the common platform_get_resource()+devm_platform_ioremap() combination,
there is a helper, so use it and make the code a bit more compact.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Link: https://lore.kernel.org/r/20201006193320.405529-3-enric.balletbo@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-mmsys.c