]> Pileus Git - ~andy/linux/blobdiff - arch/ia64/kernel/pci-dma.c
set up dma_ops appropriately
[~andy/linux] / arch / ia64 / kernel / pci-dma.c
index 2a92f637431d77f0ddeba81c89643c332a3ddac4..1c1224bd017941b6e7271995fc6289c30f33b2fe 100644 (file)
@@ -32,9 +32,6 @@ int force_iommu __read_mostly = 1;
 int force_iommu __read_mostly;
 #endif
 
-/* Set this to 1 if there is a HW IOMMU in the system */
-int iommu_detected __read_mostly;
-
 /* Dummy device used for NULL arguments (normally ISA). Better would
    be probably a smaller DMA mask, but this is bug-to-bug compatible
    to i386. */
@@ -44,8 +41,11 @@ struct device fallback_dev = {
        .dma_mask = &fallback_dev.coherent_dma_mask,
 };
 
+extern struct dma_mapping_ops vtd_dma_ops;
+
 void __init pci_iommu_alloc(void)
 {
+       dma_ops = &vtd_dma_ops;
        /*
         * The order of these functions is important for
         * fall-back/fail-over reasons
@@ -79,9 +79,6 @@ iommu_dma_init(void)
        return;
 }
 
-struct dma_mapping_ops *dma_ops;
-EXPORT_SYMBOL(dma_ops);
-
 int iommu_dma_supported(struct device *dev, u64 mask)
 {
        struct dma_mapping_ops *ops = get_dma_ops(dev);