drm/exynos: add drm_iommu_attach_device_if_possible()
authorHyungwon Hwang <human.hwang@samsung.com>
Mon, 22 Jun 2015 10:05:04 +0000 (19:05 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 22 Jun 2015 10:05:46 +0000 (19:05 +0900)
commitfc2e013f78c42fdafcb48f4922c2ae6d2c8e7d09
treee906df44bda58b6940586e75bce9eee97f258d8a
parent3f46d807f861fb7304c9890fb091efb80161f2c7
drm/exynos: add drm_iommu_attach_device_if_possible()

Every CRTC drivers in Exynos DRM implements the code which checks
whether IOMMU is supported or not, and if supported enable it.
Making new helper for it generalize each CRTC drivers.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos7_drm_decon.c
drivers/gpu/drm/exynos/exynos_drm_drv.h
drivers/gpu/drm/exynos/exynos_drm_fimd.c
drivers/gpu/drm/exynos/exynos_drm_iommu.c
drivers/gpu/drm/exynos/exynos_drm_iommu.h
drivers/gpu/drm/exynos/exynos_mixer.c