summaryrefslogtreecommitdiff
path: root/lib/dma-virt.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-22 11:04:17 +0200
committerChristoph Hellwig <hch@lst.de>2017-06-28 06:54:41 -0700
commit3be6d9b6da2ca62a4fd73a401b26f4a1dac2a47d (patch)
tree4e5a936f50c8bdf23c2c083272a0fc71a30667ff /lib/dma-virt.c
parent050d228a740a2e4d988801e64b2aee0159542f59 (diff)
dma-virt: remove dma_supported and mapping_error methods
These just duplicate the default behavior if no method is provided. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'lib/dma-virt.c')
-rw-r--r--lib/dma-virt.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/dma-virt.c b/lib/dma-virt.c
index dcd4df1f7174..5c4f11329721 100644
--- a/lib/dma-virt.c
+++ b/lib/dma-virt.c
@@ -51,22 +51,10 @@ static int dma_virt_map_sg(struct device *dev, struct scatterlist *sgl,
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 = {
.alloc = dma_virt_alloc,
.free = dma_virt_free,
.map_page = dma_virt_map_page,
.map_sg = dma_virt_map_sg,
- .mapping_error = dma_virt_mapping_error,
- .dma_supported = dma_virt_supported,
};
EXPORT_SYMBOL(dma_virt_ops);