diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-08-04 15:08:25 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-08-28 00:24:10 -0400 |
commit | 45223c549273bbb2c6e1bc6e3629174e8765ad01 (patch) | |
tree | 366f61a56de635c73faa1b779fec6694a075eaa8 /arch/powerpc/kernel | |
parent | f726f30e32305a34a203ff975e60885aa7556c6a (diff) |
powerpc: use dma_map_ops struct
This converts uses dma_map_ops struct (in include/linux/dma-mapping.h)
instead of POWERPC homegrown dma_mapping_ops.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/dma-iommu.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/dma-swiotlb.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/dma.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/ibmebus.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 6 | ||||
-rw-r--r-- | arch/powerpc/kernel/vio.c | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/arch/powerpc/kernel/dma-iommu.c b/arch/powerpc/kernel/dma-iommu.c index 2983adac8cc3..87ddb3fb948c 100644 --- a/arch/powerpc/kernel/dma-iommu.c +++ b/arch/powerpc/kernel/dma-iommu.c | |||
@@ -89,7 +89,7 @@ static int dma_iommu_dma_supported(struct device *dev, u64 mask) | |||
89 | return 1; | 89 | return 1; |
90 | } | 90 | } |
91 | 91 | ||
92 | struct dma_mapping_ops dma_iommu_ops = { | 92 | struct dma_map_ops dma_iommu_ops = { |
93 | .alloc_coherent = dma_iommu_alloc_coherent, | 93 | .alloc_coherent = dma_iommu_alloc_coherent, |
94 | .free_coherent = dma_iommu_free_coherent, | 94 | .free_coherent = dma_iommu_free_coherent, |
95 | .map_sg = dma_iommu_map_sg, | 95 | .map_sg = dma_iommu_map_sg, |
diff --git a/arch/powerpc/kernel/dma-swiotlb.c b/arch/powerpc/kernel/dma-swiotlb.c index ca141e108ae3..d1143a68d82a 100644 --- a/arch/powerpc/kernel/dma-swiotlb.c +++ b/arch/powerpc/kernel/dma-swiotlb.c | |||
@@ -31,7 +31,7 @@ unsigned int ppc_swiotlb_enable; | |||
31 | * map_page, and unmap_page on highmem, use normal dma_ops | 31 | * map_page, and unmap_page on highmem, use normal dma_ops |
32 | * for everything else. | 32 | * for everything else. |
33 | */ | 33 | */ |
34 | struct dma_mapping_ops swiotlb_dma_ops = { | 34 | struct dma_map_ops swiotlb_dma_ops = { |
35 | .alloc_coherent = dma_direct_alloc_coherent, | 35 | .alloc_coherent = dma_direct_alloc_coherent, |
36 | .free_coherent = dma_direct_free_coherent, | 36 | .free_coherent = dma_direct_free_coherent, |
37 | .map_sg = swiotlb_map_sg_attrs, | 37 | .map_sg = swiotlb_map_sg_attrs, |
diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c index ccf129d47d84..c61f70e145ad 100644 --- a/arch/powerpc/kernel/dma.c +++ b/arch/powerpc/kernel/dma.c | |||
@@ -140,7 +140,7 @@ static inline void dma_direct_sync_single_range(struct device *dev, | |||
140 | } | 140 | } |
141 | #endif | 141 | #endif |
142 | 142 | ||
143 | struct dma_mapping_ops dma_direct_ops = { | 143 | struct dma_map_ops dma_direct_ops = { |
144 | .alloc_coherent = dma_direct_alloc_coherent, | 144 | .alloc_coherent = dma_direct_alloc_coherent, |
145 | .free_coherent = dma_direct_free_coherent, | 145 | .free_coherent = dma_direct_free_coherent, |
146 | .map_sg = dma_direct_map_sg, | 146 | .map_sg = dma_direct_map_sg, |
diff --git a/arch/powerpc/kernel/ibmebus.c b/arch/powerpc/kernel/ibmebus.c index 6e3f62493659..a4c8b38b0ba1 100644 --- a/arch/powerpc/kernel/ibmebus.c +++ b/arch/powerpc/kernel/ibmebus.c | |||
@@ -127,7 +127,7 @@ static int ibmebus_dma_supported(struct device *dev, u64 mask) | |||
127 | return 1; | 127 | return 1; |
128 | } | 128 | } |
129 | 129 | ||
130 | static struct dma_mapping_ops ibmebus_dma_ops = { | 130 | static struct dma_map_ops ibmebus_dma_ops = { |
131 | .alloc_coherent = ibmebus_alloc_coherent, | 131 | .alloc_coherent = ibmebus_alloc_coherent, |
132 | .free_coherent = ibmebus_free_coherent, | 132 | .free_coherent = ibmebus_free_coherent, |
133 | .map_sg = ibmebus_map_sg, | 133 | .map_sg = ibmebus_map_sg, |
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 5a56e97c5ac0..7585f1fc26db 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -50,14 +50,14 @@ resource_size_t isa_mem_base; | |||
50 | unsigned int ppc_pci_flags = 0; | 50 | unsigned int ppc_pci_flags = 0; |
51 | 51 | ||
52 | 52 | ||
53 | static struct dma_mapping_ops *pci_dma_ops = &dma_direct_ops; | 53 | static struct dma_map_ops *pci_dma_ops = &dma_direct_ops; |
54 | 54 | ||
55 | void set_pci_dma_ops(struct dma_mapping_ops *dma_ops) | 55 | void set_pci_dma_ops(struct dma_map_ops *dma_ops) |
56 | { | 56 | { |
57 | pci_dma_ops = dma_ops; | 57 | pci_dma_ops = dma_ops; |
58 | } | 58 | } |
59 | 59 | ||
60 | struct dma_mapping_ops *get_pci_dma_ops(void) | 60 | struct dma_map_ops *get_pci_dma_ops(void) |
61 | { | 61 | { |
62 | return pci_dma_ops; | 62 | return pci_dma_ops; |
63 | } | 63 | } |
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index 819e59f6f7c7..bc7b41edbdfc 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c | |||
@@ -601,7 +601,7 @@ static void vio_dma_iommu_unmap_sg(struct device *dev, | |||
601 | vio_cmo_dealloc(viodev, alloc_size); | 601 | vio_cmo_dealloc(viodev, alloc_size); |
602 | } | 602 | } |
603 | 603 | ||
604 | struct dma_mapping_ops vio_dma_mapping_ops = { | 604 | struct dma_map_ops vio_dma_mapping_ops = { |
605 | .alloc_coherent = vio_dma_iommu_alloc_coherent, | 605 | .alloc_coherent = vio_dma_iommu_alloc_coherent, |
606 | .free_coherent = vio_dma_iommu_free_coherent, | 606 | .free_coherent = vio_dma_iommu_free_coherent, |
607 | .map_sg = vio_dma_iommu_map_sg, | 607 | .map_sg = vio_dma_iommu_map_sg, |