Commit 3be6d9b6 authored by Christoph Hellwig's avatar Christoph Hellwig

dma-virt: remove dma_supported and mapping_error methods

These just duplicate the default behavior if no method is provided.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 050d228a
...@@ -51,22 +51,10 @@ static int dma_virt_map_sg(struct device *dev, struct scatterlist *sgl, ...@@ -51,22 +51,10 @@ static int dma_virt_map_sg(struct device *dev, struct scatterlist *sgl,
return nents; return nents;
} }
static int dma_virt_mapping_error(struct device *dev, dma_addr_t dma_addr)
{
return false;
}
static int dma_virt_supported(struct device *dev, u64 mask)
{
return true;
}
const struct dma_map_ops dma_virt_ops = { const struct dma_map_ops dma_virt_ops = {
.alloc = dma_virt_alloc, .alloc = dma_virt_alloc,
.free = dma_virt_free, .free = dma_virt_free,
.map_page = dma_virt_map_page, .map_page = dma_virt_map_page,
.map_sg = dma_virt_map_sg, .map_sg = dma_virt_map_sg,
.mapping_error = dma_virt_mapping_error,
.dma_supported = dma_virt_supported,
}; };
EXPORT_SYMBOL(dma_virt_ops); EXPORT_SYMBOL(dma_virt_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