mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
video: rockchip: mpp: fix issue for CONFIG_IOMMU_SUPPORT=n
if CONFIG_IOMMU_SUPPORT=n, log: error: 'const struct iommu_ops' has no member named 'flush_iotlb_all' if (domain && domain->ops && domain->ops->flush_iotlb_all) Change-Id: I8268e0b5d5a513d1c55b0c755c479049b13bdeb7 Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
@@ -486,8 +486,8 @@ int mpp_iommu_flush_tlb(struct mpp_iommu_info *info)
|
||||
{
|
||||
struct iommu_domain *domain = info->domain;
|
||||
|
||||
if (domain && domain->ops && domain->ops->flush_iotlb_all)
|
||||
domain->ops->flush_iotlb_all(domain);
|
||||
if (domain && domain->ops)
|
||||
iommu_flush_tlb_all(domain);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user