]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
iommu: remove the mapping_error dma_map_ops method
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Nov 2018 18:28:34 +0000 (19:28 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 14:56:46 +0000 (06:56 -0800)
commitb3aa14f022543ed86823c97c145495b747102fa9
tree9589fcbf910a2291fe41ec8e0e3c656ce338f0df
parent887712a0a5b31e0cf28087f6445de431b4722e52
iommu: remove the mapping_error dma_map_ops method

Return DMA_MAPPING_ERROR instead of 0 on a dma mapping failure and let
the core dma-mapping code handle the rest.

Note that the existing code used AMD_IOMMU_MAPPING_ERROR to check from
a 0 return from the IOVA allocator, which is replaced with an explicit
0 as in the implementation and other users of that interface.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/iommu/amd_iommu.c