Skip to content

Commit 4480845

Browse files
committed
iommu/msm: Convert to iommu_capable() API function
Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 5d587b8 commit 4480845

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎drivers/iommu/msm_iommu.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,10 +603,9 @@ static phys_addr_t msm_iommu_iova_to_phys(struct iommu_domain *domain,
603603
return ret;
604604
}
605605

606-
static int msm_iommu_domain_has_cap(struct iommu_domain *domain,
607-
unsigned long cap)
606+
static bool msm_iommu_capable(enum iommu_cap cap)
608607
{
609-
return 0;
608+
return false;
610609
}
611610

612611
static void print_ctx_regs(void __iomem *base, int ctx)
@@ -675,14 +674,14 @@ irqreturn_t msm_iommu_fault_handler(int irq, void *dev_id)
675674
}
676675

677676
static const struct iommu_ops msm_iommu_ops = {
677+
.capable = msm_iommu_capable,
678678
.domain_init = msm_iommu_domain_init,
679679
.domain_destroy = msm_iommu_domain_destroy,
680680
.attach_dev = msm_iommu_attach_dev,
681681
.detach_dev = msm_iommu_detach_dev,
682682
.map = msm_iommu_map,
683683
.unmap = msm_iommu_unmap,
684684
.iova_to_phys = msm_iommu_iova_to_phys,
685-
.domain_has_cap = msm_iommu_domain_has_cap,
686685
.pgsize_bitmap = MSM_IOMMU_PGSIZES,
687686
};
688687

0 commit comments

Comments
 (0)