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-gart.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-gart.c')
-rw-r--r-- | drivers/iommu/tegra-gart.c | 7 |
1 files changed, 3 insertions, 4 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 | ||