]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dma-noop: remove dma_supported and mapping_error methods
authorChristoph Hellwig <hch@lst.de>
Mon, 22 May 2017 09:03:30 +0000 (11:03 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 Jun 2017 13:54:40 +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-noop.c

index de26c8b68f344857a4a066b03ba937825c03b6ca..643a074f139d9c2346d0b65b69ed036fe0b5d633 100644 (file)
@@ -54,23 +54,11 @@ static int dma_noop_map_sg(struct device *dev, struct scatterlist *sgl, int nent
        return nents;
 }
 
-static int dma_noop_mapping_error(struct device *dev, dma_addr_t dma_addr)
-{
-       return 0;
-}
-
-static int dma_noop_supported(struct device *dev, u64 mask)
-{
-       return 1;
-}
-
 const struct dma_map_ops dma_noop_ops = {
        .alloc                  = dma_noop_alloc,
        .free                   = dma_noop_free,
        .map_page               = dma_noop_map_page,
        .map_sg                 = dma_noop_map_sg,
-       .mapping_error          = dma_noop_mapping_error,
-       .dma_supported          = dma_noop_supported,
 };
 
 EXPORT_SYMBOL(dma_noop_ops);