diff options
author | Joerg Roedel <jroedel@suse.de> | 2014-09-05 10:51:14 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-09-25 15:47:38 +0200 |
commit | 4480845eef8d7751f015322e3c6d2680ff7d7dc7 (patch) | |
tree | ddfdc0ae06d9ea67e7f77b569150b14188608253 /drivers | |
parent | iommu/vt-d: Convert to iommu_capable() API function (diff) | |
download | linux-4480845eef8d7751f015322e3c6d2680ff7d7dc7.tar.xz linux-4480845eef8d7751f015322e3c6d2680ff7d7dc7.zip |
iommu/msm: Convert to iommu_capable() API function
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iommu/msm_iommu.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/iommu/msm_iommu.c b/drivers/iommu/msm_iommu.c index 49f41d6e02f1..6e3dcc289d59 100644 --- a/drivers/iommu/msm_iommu.c +++ b/drivers/iommu/msm_iommu.c @@ -603,10 +603,9 @@ fail: return ret; } -static int msm_iommu_domain_has_cap(struct iommu_domain *domain, - unsigned long cap) +static bool msm_iommu_capable(enum iommu_cap cap) { - return 0; + return false; } static void print_ctx_regs(void __iomem *base, int ctx) @@ -675,6 +674,7 @@ fail: } static const struct iommu_ops msm_iommu_ops = { + .capable = msm_iommu_capable, .domain_init = msm_iommu_domain_init, .domain_destroy = msm_iommu_domain_destroy, .attach_dev = msm_iommu_attach_dev, @@ -682,7 +682,6 @@ static const struct iommu_ops msm_iommu_ops = { .map = msm_iommu_map, .unmap = msm_iommu_unmap, .iova_to_phys = msm_iommu_iova_to_phys, - .domain_has_cap = msm_iommu_domain_has_cap, .pgsize_bitmap = MSM_IOMMU_PGSIZES, }; |