iommu/dma-iommu: remove the mapping_error dma_map_ops method
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Nov 2018 18:35:19 +0000 (19:35 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 14:56:48 +0000 (06:56 -0800)
commitcad34be747b8a92146e71c8267f2c1d6794e34c0
tree638d7404b8b08119c27472d92156d6a43212c0dc
parent524a669bdd5ff45cb927f0c524ed4e7a4fb3650b
iommu/dma-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.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm64/mm/dma-mapping.c
drivers/iommu/dma-iommu.c
include/linux/dma-iommu.h