From fdf8b0fb96c8145c6842489fedf4aa40f95f8e25 Mon Sep 17 00:00:00 2001 From: Yu Qiaowei Date: Thu, 3 Mar 2022 20:05:23 +0800 Subject: [PATCH] video: rockchip: rga3: Remove iommu_api that does not support GKI Signed-off-by: Yu Qiaowei Change-Id: Ie90b87aa84758644a4696e59a63c48d2fbb8e7b2 --- drivers/video/rockchip/rga3/rga_dma_buf.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/video/rockchip/rga3/rga_dma_buf.c b/drivers/video/rockchip/rga3/rga_dma_buf.c index 981287cadc91..ef8eee4f6f0a 100644 --- a/drivers/video/rockchip/rga3/rga_dma_buf.c +++ b/drivers/video/rockchip/rga3/rga_dma_buf.c @@ -425,11 +425,7 @@ static inline bool rga_dev_is_dma_coherent(struct device *dev) static inline struct iommu_domain *rga_iommu_get_dma_domain(struct device *dev) { -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)) - return iommu_get_dma_domain(dev); -#else return iommu_get_domain_for_dev(dev); -#endif } static inline void rga_dma_flush_cache_by_sgt(struct sg_table *sgt)