diff options
author | Jon Medhurst <tixy@linaro.org> | 2015-07-15 14:25:07 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2015-07-17 12:21:29 +0100 |
commit | 21cef4ada56547820c6fe2fad7b6374d664ccce7 (patch) | |
tree | be3c7b320fecdfc493ab348f8bd365f971462538 | |
parent | 37edbb37af9ea5832e0ae51f729973716ee6fa66 (diff) |
iommu/arm-smmu: Remove iommu_capable implemnation
The iommu_capable API wasn't introduced until 3.18.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r-- | drivers/iommu/arm-smmu.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 49c03a376554..5b5b83415d9f 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1237,24 +1237,6 @@ static phys_addr_t arm_smmu_iova_to_phys(struct iommu_domain *domain, return ret; } -static bool arm_smmu_capable(enum iommu_cap cap) -{ - switch (cap) { - case IOMMU_CAP_CACHE_COHERENCY: - /* - * Return true here as the SMMU can always send out coherent - * requests. - */ - return true; - case IOMMU_CAP_INTR_REMAP: - return true; /* MSIs are just memory writes */ - case IOMMU_CAP_NOEXEC: - return true; - default: - return false; - } -} - static int __arm_smmu_get_pci_sid(struct pci_dev *pdev, u16 alias, void *data) { *((u16 *)data) = alias; @@ -1371,7 +1353,6 @@ out_unlock: } static struct iommu_ops arm_smmu_ops = { - .capable = arm_smmu_capable, .domain_init = arm_smmu_domain_init, .domain_destroy = arm_smmu_domain_destroy, .attach_dev = arm_smmu_attach_dev, |