drm/tegra: vic: Use devm_platform_ioremap_resource()
authorLv Ruyi <lv.ruyi@zte.com.cn>
Thu, 21 Apr 2022 08:45:42 +0000 (08:45 +0000)
committerThierry Reding <treding@nvidia.com>
Fri, 8 Jul 2022 15:54:42 +0000 (17:54 +0200)
commit135f4c551d51065ee2d0677bf5344a89767e9d9b
tree6f02443d59033cb96d9c6c2a5d86fc1ea303f4a5
parent2e1bfb314c99de2f7b9c8280408316ad2f316de9
drm/tegra: vic: Use devm_platform_ioremap_resource()

Use the devm_platform_ioremap_resource() helper instead of calling
platform_get_resource() and devm_ioremap_resource() separately. Make the
code simpler without functional changes.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/vic.c