OSDN Git Service

dma-direct: remove the mapping_error dma_map_ops method
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Nov 2018 17:52:35 +0000 (18:52 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Dec 2018 14:56:36 +0000 (06:56 -0800)
commitb0cbeae4944924640bf550b75487729a20204c14
treead7ddcb65ac796861e1a9af8db84a8eb116bb2e1
parent42ee3cae0ed38b6c04038bf851ea2496da2135bb
dma-direct: remove the mapping_error dma_map_ops method

The dma-direct 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/kernel/dma-swiotlb.c
include/linux/dma-direct.h
kernel/dma/direct.c
kernel/dma/swiotlb.c