diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-21 14:17:10 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-28 06:54:33 -0700 |
commit | 6009faa43f804c99b3d8fff94fa1e0692be70358 (patch) | |
tree | 05168471d1bc2b5d056a7e77bdc1bfd8ff844eb2 /arch/powerpc/include/asm/dma-mapping.h | |
parent | ceaf481c4f6ae6090288528825abc7d051bb1032 (diff) | |
download | linux-stable-6009faa43f804c99b3d8fff94fa1e0692be70358.tar.gz linux-stable-6009faa43f804c99b3d8fff94fa1e0692be70358.tar.bz2 linux-stable-6009faa43f804c99b3d8fff94fa1e0692be70358.zip |
powerpc: implement ->mapping_error
DMA_ERROR_CODE is going to go away, so don't rely on it. Instead
define a ->mapping_error method for all IOMMU based dma operation
instances. The direct ops don't ever return an error and don't
need a ->mapping_error method.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/dma-mapping.h')
-rw-r--r-- | arch/powerpc/include/asm/dma-mapping.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/dma-mapping.h b/arch/powerpc/include/asm/dma-mapping.h index 181a095468e4..73aedbe6c977 100644 --- a/arch/powerpc/include/asm/dma-mapping.h +++ b/arch/powerpc/include/asm/dma-mapping.h @@ -17,10 +17,6 @@ #include <asm/io.h> #include <asm/swiotlb.h> -#ifdef CONFIG_PPC64 -#define DMA_ERROR_CODE (~(dma_addr_t)0x0) -#endif - /* Some dma direct funcs must be visible for use in other dma_ops */ extern void *__dma_direct_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag, |