]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa621efd8b5cd807b4d8437aaf6c6ca1374352a2
tree638d7404b8b08119c27472d92156d6a43212c0dc
parent1dc16c2aa86c8ff4a35d1cb140b61b20ee5fb246
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