video: rockchip: rga3: Remove iommu_api that does not support GKI

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ie90b87aa84758644a4696e59a63c48d2fbb8e7b2
This commit is contained in:
Yu Qiaowei
2022-03-03 20:05:23 +08:00
committed by Tao Huang
parent 431ced4368
commit fdf8b0fb96

View File

@@ -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)