drm/tegra: Refactor IOMMU attach/detach
authorThierry Reding <treding@nvidia.com>
Fri, 4 May 2018 13:02:24 +0000 (15:02 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 17 May 2018 12:08:40 +0000 (14:08 +0200)
commit0c407de5ed1a329468122cbf4f3e727e0c1e3f36
tree3f96f17886dcfc453e117f3820fb3c24f80133f1
parent230630bd3834af0ea6ec75354ec21819de148ee1
drm/tegra: Refactor IOMMU attach/detach

Attaching to and detaching from an IOMMU uses the same code sequence in
every driver, so factor it out into separate helpers.

Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/drm.h
drivers/gpu/drm/tegra/gr2d.c
drivers/gpu/drm/tegra/gr3d.c