|
@@ -213,10 +213,8 @@ static __init int iommu_setup(char *p)
|
|
|
}
|
|
|
early_param("iommu", iommu_setup);
|
|
|
|
|
|
-int dma_supported(struct device *dev, u64 mask)
|
|
|
+int x86_dma_supported(struct device *dev, u64 mask)
|
|
|
{
|
|
|
- const struct dma_map_ops *ops = get_dma_ops(dev);
|
|
|
-
|
|
|
#ifdef CONFIG_PCI
|
|
|
if (mask > 0xffffffff && forbid_dac > 0) {
|
|
|
dev_info(dev, "PCI: Disallowing DAC for device\n");
|
|
@@ -224,9 +222,6 @@ int dma_supported(struct device *dev, u64 mask)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
- if (ops->dma_supported)
|
|
|
- return ops->dma_supported(dev, mask);
|
|
|
-
|
|
|
/* Copied from i386. Doesn't make much sense, because it will
|
|
|
only work for pci_alloc_coherent.
|
|
|
The caller just has to use GFP_DMA in this case. */
|
|
@@ -252,7 +247,6 @@ int dma_supported(struct device *dev, u64 mask)
|
|
|
|
|
|
return 1;
|
|
|
}
|
|
|
-EXPORT_SYMBOL(dma_supported);
|
|
|
|
|
|
static int __init pci_iommu_init(void)
|
|
|
{
|