Skip to content

Commit

Permalink
iommu/msm: Convert to iommu_capable() API function
Browse files Browse the repository at this point in the history
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Joerg Roedel committed Sep 25, 2014
1 parent 5d587b8 commit 4480845
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/iommu/msm_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,9 @@ static phys_addr_t msm_iommu_iova_to_phys(struct iommu_domain *domain,
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)
Expand Down Expand Up @@ -675,14 +674,14 @@ irqreturn_t msm_iommu_fault_handler(int irq, void *dev_id)
}

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,
.detach_dev = msm_iommu_detach_dev,
.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,
};

Expand Down

0 comments on commit 4480845

Please sign in to comment.