dma-mapping: bypass indirect calls for dma-direct
[sfrench/cifs-2.6.git] / arch / ia64 / hp / common / sba_iommu.c
index 5ee74820a0f6d7ffef21ca0bf45b36b6404d7bc2..5a361e51cb1ef822522b46d2d9dc6462a97464de 100644 (file)
@@ -2078,7 +2078,7 @@ sba_init(void)
         * a successful kdump kernel boot is to use the swiotlb.
         */
        if (is_kdump_kernel()) {
-               dma_ops = &dma_direct_ops;
+               dma_ops = NULL;
                if (swiotlb_late_init_with_default_size(64 * (1<<20)) != 0)
                        panic("Unable to initialize software I/O TLB:"
                                  " Try machvec=dig boot option");
@@ -2100,7 +2100,7 @@ sba_init(void)
                 * If we didn't find something sba_iommu can claim, we
                 * need to setup the swiotlb and switch to the dig machvec.
                 */
-               dma_ops = &dma_direct_ops;
+               dma_ops = NULL;
                if (swiotlb_late_init_with_default_size(64 * (1<<20)) != 0)
                        panic("Unable to find SBA IOMMU or initialize "
                              "software I/O TLB: Try machvec=dig boot option");