|
@@ -46,7 +46,7 @@ static u64 swiotlb_powerpc_get_required(struct device *dev)
|
|
|
* map_page, and unmap_page on highmem, use normal dma_ops
|
|
|
* for everything else.
|
|
|
*/
|
|
|
-const struct dma_map_ops swiotlb_dma_ops = {
|
|
|
+const struct dma_map_ops powerpc_swiotlb_dma_ops = {
|
|
|
.alloc = __dma_nommu_alloc_coherent,
|
|
|
.free = __dma_nommu_free_coherent,
|
|
|
.mmap = dma_nommu_mmap_coherent,
|
|
@@ -89,7 +89,7 @@ static int ppc_swiotlb_bus_notify(struct notifier_block *nb,
|
|
|
|
|
|
/* May need to bounce if the device can't address all of DRAM */
|
|
|
if ((dma_get_mask(dev) + 1) < memblock_end_of_DRAM())
|
|
|
- set_dma_ops(dev, &swiotlb_dma_ops);
|
|
|
+ set_dma_ops(dev, &powerpc_swiotlb_dma_ops);
|
|
|
|
|
|
return NOTIFY_DONE;
|
|
|
}
|