Commit 9ce9765a authored by Christoph Hellwig's avatar Christoph Hellwig

x86: rename swiotlb_dma_ops

We'll need that name for a generic implementation soon.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent a37a3710
...@@ -48,7 +48,7 @@ void x86_swiotlb_free_coherent(struct device *dev, size_t size, ...@@ -48,7 +48,7 @@ void x86_swiotlb_free_coherent(struct device *dev, size_t size,
dma_generic_free_coherent(dev, size, vaddr, dma_addr, attrs); dma_generic_free_coherent(dev, size, vaddr, dma_addr, attrs);
} }
static const struct dma_map_ops swiotlb_dma_ops = { static const struct dma_map_ops x86_swiotlb_dma_ops = {
.mapping_error = swiotlb_dma_mapping_error, .mapping_error = swiotlb_dma_mapping_error,
.alloc = x86_swiotlb_alloc_coherent, .alloc = x86_swiotlb_alloc_coherent,
.free = x86_swiotlb_free_coherent, .free = x86_swiotlb_free_coherent,
...@@ -112,7 +112,7 @@ void __init pci_swiotlb_init(void) ...@@ -112,7 +112,7 @@ void __init pci_swiotlb_init(void)
{ {
if (swiotlb) { if (swiotlb) {
swiotlb_init(0); swiotlb_init(0);
dma_ops = &swiotlb_dma_ops; dma_ops = &x86_swiotlb_dma_ops;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment