aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/pci-base_32.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-base_32.c b/arch/x86/kernel/pci-base_32.c
index cf4bb28dfc6a..7caf5c211f23 100644
--- a/arch/x86/kernel/pci-base_32.c
+++ b/arch/x86/kernel/pci-base_32.c
@@ -30,6 +30,12 @@ static int pci32_dma_map_sg(struct device *dev, struct scatterlist *sglist,
30 return nents; 30 return nents;
31} 31}
32 32
33/* Make sure we keep the same behaviour */
34static int pci32_map_error(dma_addr_t dma_addr)
35{
36 return 0;
37}
38
33static const struct dma_mapping_ops pci32_dma_ops = { 39static const struct dma_mapping_ops pci32_dma_ops = {
34 .map_single = pci32_map_single, 40 .map_single = pci32_map_single,
35 .unmap_single = NULL, 41 .unmap_single = NULL,
@@ -41,6 +47,7 @@ static const struct dma_mapping_ops pci32_dma_ops = {
41 .sync_single_range_for_device = NULL, 47 .sync_single_range_for_device = NULL,
42 .sync_sg_for_cpu = NULL, 48 .sync_sg_for_cpu = NULL,
43 .sync_sg_for_device = NULL, 49 .sync_sg_for_device = NULL,
50 .mapping_error = pci32_map_error,
44}; 51};
45 52
46const struct dma_mapping_ops *dma_ops = &pci32_dma_ops; 53const struct dma_mapping_ops *dma_ops = &pci32_dma_ops;