diff options
author | Joerg Roedel <jroedel@suse.de> | 2014-09-05 04:51:37 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-09-25 09:47:38 -0400 |
commit | 7c2aa6441e957df85eded3a7297d36a57b210988 (patch) | |
tree | 61e187b4915a7449b294a4480e706f72e43e9b1a /drivers/iommu/tegra-smmu.c | |
parent | 4480845eef8d7751f015322e3c6d2680ff7d7dc7 (diff) |
iommu/tegra: Convert to iommu_capable() API function
Cc: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/tegra-smmu.c')
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 | ||