diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2018-10-12 12:53:43 +0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2018-12-04 05:23:17 +0100 |
commit | 237556962e51150f89bdc8d04171a3619bfeaf8d (patch) | |
tree | fcca6f2ffb2247f3143022cb206db129f11af13a /drivers/gpu/drm/exynos/exynos5433_drm_decon.c | |
parent | drm/exynos/iommu: remove DRM_EXYNOS_IOMMU Kconfig symbol (diff) | |
download | linux-237556962e51150f89bdc8d04171a3619bfeaf8d.tar.xz linux-237556962e51150f89bdc8d04171a3619bfeaf8d.zip |
drm/exynos/iommu: integrate IOMMU/DMA internal API
Exynos DRM drivers should work with and without IOMMU. Providing common
API generic to both scenarios should make code cleaner and allow further
code improvements.
The patch removes including of exynos_drm_iommu.h as the file contains
mostly IOMMU specific stuff, instead it exposes exynos_drm_*_dma functions
and puts them into exynos_drm_dma.c.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos5433_drm_decon.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index ce08d77336f0..40723f395ecc 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -25,7 +25,6 @@ #include "exynos_drm_crtc.h" #include "exynos_drm_fb.h" #include "exynos_drm_plane.h" -#include "exynos_drm_iommu.h" #include "regs-decon5433.h" #define DSD_CFG_MUX 0x1004 @@ -579,7 +578,7 @@ static void decon_unbind(struct device *dev, struct device *master, void *data) decon_disable(ctx->crtc); /* detach this sub driver from iommu mapping if supported. */ - drm_iommu_detach_device(ctx->drm_dev, ctx->dev); + exynos_drm_unregister_dma(ctx->drm_dev, ctx->dev); } static const struct component_ops decon_component_ops = { |