]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: remove the mapping_error dma_map_ops method
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Nov 2018 17:59:05 +0000 (18:59 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 14:56:40 +0000 (06:56 -0800)
commit4ca933f3ede01c1629e9b1b162186381b9f1183f
treee7add24ab5365d4956c31229892b710f4c2ef165
parent7fd1f49bffa6170991c4f456381036fbbd284fb2
sparc: remove the mapping_error dma_map_ops method

Sparc 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/sparc/kernel/iommu.c
arch/sparc/kernel/iommu_common.h
arch/sparc/kernel/pci_sun4v.c