drm/mediatek: Use devm_platform_ioremap_resource()
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 12 Apr 2023 06:46:33 +0000 (14:46 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 7 Dec 2023 15:58:02 +0000 (15:58 +0000)
commit3e743b0fcb90551106c13837548079b91d661384
tree1bd7d114c049069ad3e8da62b90f7e5e376402a8
parentb85ea95d086471afb4ad062012a4d73cd328fa86
drm/mediatek: Use devm_platform_ioremap_resource()

Remove variable 'res' and convert platform_get_resource(),
devm_ioremap_resource() to a single call to
devm_platform_ioremap_resource(), as this is exactly what this function
does.

Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20230412064635.41315-1-yang.lee@linux.alibaba.com/
Link: https://patchwork.kernel.org/project/dri-devel/patch/20230412064635.41315-2-yang.lee@linux.alibaba.com/
Link: https://patchwork.kernel.org/project/dri-devel/patch/20230412064635.41315-3-yang.lee@linux.alibaba.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_cec.c
drivers/gpu/drm/mediatek/mtk_disp_aal.c
drivers/gpu/drm/mediatek/mtk_disp_ccorr.c