]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dma-virt: remove dma_supported and mapping_error methods
authorChristoph Hellwig <hch@lst.de>
Mon, 22 May 2017 09:04:17 +0000 (11:04 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 Jun 2017 13:54:41 +0000 (06:54 -0700)
These just duplicate the default behavior if no method is provided.

Signed-off-by: Christoph Hellwig <hch@lst.de>
lib/dma-virt.c

index dcd4df1f71746c293f8914bca2654a911f34ffe3..5c4f113297213035fe9e78811800cd12eabbee7c 100644 (file)
@@ -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);