dma-mapping: remove the default map_resource implementation
authorChristoph Hellwig <hch@lst.de>
Fri, 4 Jan 2019 17:20:05 +0000 (18:20 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Feb 2019 08:56:15 +0000 (09:56 +0100)
commitcfced786969c2a3e1bca45d7055a00311d93ae6c
tree0a03249458b9e8bc56f9b8f594efb8c4c1b6d512
parentf17b5f06cb92ef2250513a1e154c47b78df07d40
dma-mapping: remove the default map_resource implementation

Instead provide a proper implementation in the direct mapping code, and
also wire it up for arm and powerpc, leaving an error return for all the
IOMMU or virtual mapping instances for which we'd have to wire up an
actual implementation

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
arch/arm/mm/dma-mapping.c
arch/powerpc/kernel/dma-swiotlb.c
arch/powerpc/kernel/dma.c
include/linux/dma-mapping.h
kernel/dma/direct.c