Skip to content

Commit

Permalink
dma-virt: remove dma_supported and mapping_error methods
Browse files Browse the repository at this point in the history
These just duplicate the default behavior if no method is provided.

Signed-off-by: Christoph Hellwig <hch@lst.de>
  • Loading branch information
Christoph Hellwig committed Jun 28, 2017
1 parent 050d228 commit 3be6d9b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/dma-virt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 3be6d9b

Please sign in to comment.