]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/pci/sta2x11-fixup.c
x86: remove arch specific dma_supported implementation
[karo-tx-linux.git] / arch / x86 / pci / sta2x11-fixup.c
index ec008e800b45038794ce7beb41cea391dc176c9a..53d6002179733772a9e18d6e887a472c4970edce 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/pci_ids.h>
 #include <linux/export.h>
 #include <linux/list.h>
+#include <asm/iommu.h>
 
 #define STA2X11_SWIOTLB_SIZE (4*1024*1024)
 extern int swiotlb_late_init_with_default_size(size_t default_size);
@@ -191,7 +192,7 @@ static const struct dma_map_ops sta2x11_dma_ops = {
        .sync_sg_for_cpu = swiotlb_sync_sg_for_cpu,
        .sync_sg_for_device = swiotlb_sync_sg_for_device,
        .mapping_error = swiotlb_dma_mapping_error,
-       .dma_supported = NULL, /* FIXME: we should use this instead! */
+       .dma_supported = x86_dma_supported,
 };
 
 /* At setup time, we use our own ops if the device is a ConneXt one */