diff options
author | Christoph Hellwig <hch@lst.de> | 2018-12-04 14:33:24 -0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-06 06:56:50 -0800 |
commit | 68c9ac1d1fd51233cfac15484c6153b90aaa4ca4 (patch) | |
tree | 12dde8031110277d7d67158a3d61f306a121061b /drivers/pci | |
parent | a4abe0ad10654b122caed873d8a7a58989d7cf9b (diff) | |
download | linux-68c9ac1d1fd51233cfac15484c6153b90aaa4ca4.tar.gz linux-68c9ac1d1fd51233cfac15484c6153b90aaa4ca4.tar.bz2 linux-68c9ac1d1fd51233cfac15484c6153b90aaa4ca4.zip |
dma-mapping: remove the mapping_error dma_map_ops method
No users left except for vmd which just forwards it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/controller/vmd.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c index e50b0b5815ff..98ce79eac128 100644 --- a/drivers/pci/controller/vmd.c +++ b/drivers/pci/controller/vmd.c @@ -394,11 +394,6 @@ static void vmd_sync_sg_for_device(struct device *dev, struct scatterlist *sg, vmd_dma_ops(dev)->sync_sg_for_device(to_vmd_dev(dev), sg, nents, dir); } -static int vmd_mapping_error(struct device *dev, dma_addr_t addr) -{ - return vmd_dma_ops(dev)->mapping_error(to_vmd_dev(dev), addr); -} - static int vmd_dma_supported(struct device *dev, u64 mask) { return vmd_dma_ops(dev)->dma_supported(to_vmd_dev(dev), mask); @@ -446,7 +441,6 @@ static void vmd_setup_dma_ops(struct vmd_dev *vmd) ASSIGN_VMD_DMA_OPS(source, dest, sync_single_for_device); ASSIGN_VMD_DMA_OPS(source, dest, sync_sg_for_cpu); ASSIGN_VMD_DMA_OPS(source, dest, sync_sg_for_device); - ASSIGN_VMD_DMA_OPS(source, dest, mapping_error); ASSIGN_VMD_DMA_OPS(source, dest, dma_supported); ASSIGN_VMD_DMA_OPS(source, dest, get_required_mask); add_dma_domain(domain); |