]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/iommu: remove the mapping_error dma_map_ops method
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Nov 2018 17:56:25 +0000 (18:56 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 14:56:38 +0000 (06:56 -0800)
commitef5d45c6a72038bfc6b629bc28dd45baa07b1aad
treeae98b833e1b5a95e1ae662d4fdbc116bd2e3799f
parent1b0f524054578c8d62f4f3464074cc8277db4edb
powerpc/iommu: remove the mapping_error dma_map_ops method

The powerpc iommu code already returns (~(dma_addr_t)0x0) on mapping
failures, so we can switch over to returning DMA_MAPPING_ERROR 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/powerpc/include/asm/iommu.h
arch/powerpc/kernel/dma-iommu.c
arch/powerpc/kernel/iommu.c
arch/powerpc/platforms/cell/iommu.c
arch/powerpc/platforms/pseries/vio.c