diff options
Diffstat (limited to 'arch/ia64/kernel')
-rw-r--r-- | arch/ia64/kernel/dma-mapping.c | 6 | ||||
-rw-r--r-- | arch/ia64/kernel/pci-dma.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/arch/ia64/kernel/dma-mapping.c b/arch/ia64/kernel/dma-mapping.c index 876665ae9fff..427f69617226 100644 --- a/arch/ia64/kernel/dma-mapping.c +++ b/arch/ia64/kernel/dma-mapping.c | |||
@@ -2,3 +2,9 @@ | |||
2 | 2 | ||
3 | struct dma_mapping_ops *dma_ops; | 3 | struct dma_mapping_ops *dma_ops; |
4 | EXPORT_SYMBOL(dma_ops); | 4 | EXPORT_SYMBOL(dma_ops); |
5 | |||
6 | struct dma_mapping_ops *dma_get_ops(struct device *dev) | ||
7 | { | ||
8 | return dma_ops; | ||
9 | } | ||
10 | EXPORT_SYMBOL(dma_get_ops); | ||
diff --git a/arch/ia64/kernel/pci-dma.c b/arch/ia64/kernel/pci-dma.c index 1c1224bd0179..640669eba5d4 100644 --- a/arch/ia64/kernel/pci-dma.c +++ b/arch/ia64/kernel/pci-dma.c | |||
@@ -81,7 +81,7 @@ iommu_dma_init(void) | |||
81 | 81 | ||
82 | int iommu_dma_supported(struct device *dev, u64 mask) | 82 | int iommu_dma_supported(struct device *dev, u64 mask) |
83 | { | 83 | { |
84 | struct dma_mapping_ops *ops = get_dma_ops(dev); | 84 | struct dma_mapping_ops *ops = platform_dma_get_ops(dev); |
85 | 85 | ||
86 | if (ops->dma_supported_op) | 86 | if (ops->dma_supported_op) |
87 | return ops->dma_supported_op(dev, mask); | 87 | return ops->dma_supported_op(dev, mask); |