diff options
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/tegra-gart.c | 7 | ||||
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c index b10a8ecede8e..6f44ebb84047 100644 --- a/drivers/iommu/tegra-gart.c +++ b/drivers/iommu/tegra-gart.c | |||
@@ -303,13 +303,13 @@ static phys_addr_t gart_iommu_iova_to_phys(struct iommu_domain *domain, | |||
303 | return pa; | 303 | return pa; |
304 | } | 304 | } |
305 | 305 | ||
306 | static int gart_iommu_domain_has_cap(struct iommu_domain *domain, | 306 | static bool gart_iommu_capable(enum iommu_cap cap) |
307 | unsigned long cap) | ||
308 | { | 307 | { |
309 | return 0; | 308 | return false; |
310 | } | 309 | } |
311 | 310 | ||
312 | static const struct iommu_ops gart_iommu_ops = { | 311 | static const struct iommu_ops gart_iommu_ops = { |
312 | .capable = gart_iommu_capable, | ||
313 | .domain_init = gart_iommu_domain_init, | 313 | .domain_init = gart_iommu_domain_init, |
314 | .domain_destroy = gart_iommu_domain_destroy, | 314 | .domain_destroy = gart_iommu_domain_destroy, |
315 | .attach_dev = gart_iommu_attach_dev, | 315 | .attach_dev = gart_iommu_attach_dev, |
@@ -317,7 +317,6 @@ static const struct iommu_ops gart_iommu_ops = { | |||
317 | .map = gart_iommu_map, | 317 | .map = gart_iommu_map, |
318 | .unmap = gart_iommu_unmap, | 318 | .unmap = gart_iommu_unmap, |
319 | .iova_to_phys = gart_iommu_iova_to_phys, | 319 | .iova_to_phys = gart_iommu_iova_to_phys, |
320 | .domain_has_cap = gart_iommu_domain_has_cap, | ||
321 | .pgsize_bitmap = GART_IOMMU_PGSIZES, | 320 | .pgsize_bitmap = GART_IOMMU_PGSIZES, |
322 | }; | 321 | }; |
323 | 322 | ||
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 3ded3894623c..05d14e1e626f 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c | |||
@@ -780,10 +780,9 @@ static phys_addr_t smmu_iommu_iova_to_phys(struct iommu_domain *domain, | |||
780 | return PFN_PHYS(pfn); | 780 | return PFN_PHYS(pfn); |
781 | } | 781 | } |
782 | 782 | ||
783 | static int smmu_iommu_domain_has_cap(struct iommu_domain *domain, | 783 | static bool smmu_iommu_capable(enum iommu_cap cap) |
784 | unsigned long cap) | ||
785 | { | 784 | { |
786 | return 0; | 785 | return false; |
787 | } | 786 | } |
788 | 787 | ||
789 | static int smmu_iommu_attach_dev(struct iommu_domain *domain, | 788 | static int smmu_iommu_attach_dev(struct iommu_domain *domain, |
@@ -949,6 +948,7 @@ static void smmu_iommu_domain_destroy(struct iommu_domain *domain) | |||
949 | } | 948 | } |
950 | 949 | ||
951 | static const struct iommu_ops smmu_iommu_ops = { | 950 | static const struct iommu_ops smmu_iommu_ops = { |
951 | .capable = smmu_iommu_capable, | ||
952 | .domain_init = smmu_iommu_domain_init, | 952 | .domain_init = smmu_iommu_domain_init, |
953 | .domain_destroy = smmu_iommu_domain_destroy, | 953 | .domain_destroy = smmu_iommu_domain_destroy, |
954 | .attach_dev = smmu_iommu_attach_dev, | 954 | .attach_dev = smmu_iommu_attach_dev, |
@@ -956,7 +956,6 @@ static const struct iommu_ops smmu_iommu_ops = { | |||
956 | .map = smmu_iommu_map, | 956 | .map = smmu_iommu_map, |
957 | .unmap = smmu_iommu_unmap, | 957 | .unmap = smmu_iommu_unmap, |
958 | .iova_to_phys = smmu_iommu_iova_to_phys, | 958 | .iova_to_phys = smmu_iommu_iova_to_phys, |
959 | .domain_has_cap = smmu_iommu_domain_has_cap, | ||
960 | .pgsize_bitmap = SMMU_IOMMU_PGSIZES, | 959 | .pgsize_bitmap = SMMU_IOMMU_PGSIZES, |
961 | }; | 960 | }; |
962 | 961 | ||