diff options
Diffstat (limited to 'arch/ia64/hp/common/hwsw_iommu.c')
-rw-r--r-- | arch/ia64/hp/common/hwsw_iommu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ia64/hp/common/hwsw_iommu.c b/arch/ia64/hp/common/hwsw_iommu.c index e5bbeba77810..e4a80d82e3d8 100644 --- a/arch/ia64/hp/common/hwsw_iommu.c +++ b/arch/ia64/hp/common/hwsw_iommu.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/swiotlb.h> | 17 | #include <linux/swiotlb.h> |
18 | #include <asm/machvec.h> | 18 | #include <asm/machvec.h> |
19 | 19 | ||
20 | extern struct dma_mapping_ops sba_dma_ops, swiotlb_dma_ops; | 20 | extern struct dma_map_ops sba_dma_ops, swiotlb_dma_ops; |
21 | 21 | ||
22 | /* swiotlb declarations & definitions: */ | 22 | /* swiotlb declarations & definitions: */ |
23 | extern int swiotlb_late_init_with_default_size (size_t size); | 23 | extern int swiotlb_late_init_with_default_size (size_t size); |
@@ -30,10 +30,10 @@ extern int swiotlb_late_init_with_default_size (size_t size); | |||
30 | static inline int use_swiotlb(struct device *dev) | 30 | static inline int use_swiotlb(struct device *dev) |
31 | { | 31 | { |
32 | return dev && dev->dma_mask && | 32 | return dev && dev->dma_mask && |
33 | !sba_dma_ops.dma_supported_op(dev, *dev->dma_mask); | 33 | !sba_dma_ops.dma_supported(dev, *dev->dma_mask); |
34 | } | 34 | } |
35 | 35 | ||
36 | struct dma_mapping_ops *hwsw_dma_get_ops(struct device *dev) | 36 | struct dma_map_ops *hwsw_dma_get_ops(struct device *dev) |
37 | { | 37 | { |
38 | if (use_swiotlb(dev)) | 38 | if (use_swiotlb(dev)) |
39 | return &swiotlb_dma_ops; | 39 | return &swiotlb_dma_ops; |