drm/exynos: remove to use ifdef CONFIG_ARM_DMA_USE_IOMMU
authorJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 2 Jul 2015 12:49:37 +0000 (21:49 +0900)
committerInki Dae <inki.dae@samsung.com>
Sun, 16 Aug 2015 01:23:32 +0000 (10:23 +0900)
If CONFIG_ARM_DMA_USE_IOMMU is disable, CONFIG_DRM_EXYNOS_IOMMU also is
disable. When CONFIG_DRM_EXYNOS_IOMMU is disable,
is_drm_iommu_supported() returns always false, so we can remove to use
ifdef CONFIG_ARM_DMA_USE_IOMMU in is_drm_iommu_supported().

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_iommu.h

index 8341c7a475b4e4eaa60e464eb4e2a9306995b83b..a90357fc163da80fec0bb203f64afd6cc3f2c14f 100644 (file)
@@ -29,13 +29,9 @@ void drm_iommu_detach_device(struct drm_device *dev_dev,
 
 static inline bool is_drm_iommu_supported(struct drm_device *drm_dev)
 {
-#ifdef CONFIG_ARM_DMA_USE_IOMMU
        struct device *dev = drm_dev->dev;
 
        return dev->archdata.mapping ? true : false;
-#else
-       return false;
-#endif
 }
 
 int drm_iommu_attach_device_if_possible(