summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-12-03 15:26:42 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2009-01-03 14:11:08 +0100
commite4754c96cf8b82a754dc5ba791d6c0bf1fbe8e8e (patch)
treea5015d1874992e883e2d8f6ab46caead6503338e
parenta8bcbb0de4a52f07fef7412ddc877348311ebf2a (diff)
downloadop-kernel-dev-e4754c96cf8b82a754dc5ba791d6c0bf1fbe8e8e.zip
op-kernel-dev-e4754c96cf8b82a754dc5ba791d6c0bf1fbe8e8e.tar.gz
VT-d: remove now unused intel_iommu_found function
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
-rw-r--r--drivers/pci/intel-iommu.c6
-rw-r--r--include/linux/intel-iommu.h9
2 files changed, 0 insertions, 15 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index 81e04ec..ecb5fd3 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -3105,12 +3105,6 @@ static void intel_iommu_unmap_range(struct iommu_domain *domain,
dmar_domain->max_addr = base;
}
-int intel_iommu_found(void)
-{
- return g_num_of_iommus;
-}
-EXPORT_SYMBOL_GPL(intel_iommu_found);
-
static phys_addr_t intel_iommu_iova_to_phys(struct iommu_domain *domain,
unsigned long iova)
{
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h
index 26ccc02..c4f6c10 100644
--- a/include/linux/intel-iommu.h
+++ b/include/linux/intel-iommu.h
@@ -330,15 +330,6 @@ extern int qi_flush_iotlb(struct intel_iommu *iommu, u16 did, u64 addr,
extern void qi_submit_sync(struct qi_desc *desc, struct intel_iommu *iommu);
-#ifdef CONFIG_DMAR
-int intel_iommu_found(void);
-#else /* CONFIG_DMAR */
-static inline int intel_iommu_found(void)
-{
- return 0;
-}
-#endif /* CONFIG_DMAR */
-
extern void *intel_alloc_coherent(struct device *, size_t, dma_addr_t *, gfp_t);
extern void intel_free_coherent(struct device *, size_t, void *, dma_addr_t);
extern dma_addr_t intel_map_single(struct device *, phys_addr_t, size_t, int);
OpenPOWER on IntegriCloud