diff options
author | Christoph Hellwig <hch@lst.de> | 2018-11-21 18:57:36 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-06 15:56:37 +0100 |
commit | 72fd97bf4e75e37552640614a0ea98897fc1dd77 (patch) | |
tree | 7ee914059ad82d75ea482e5584134189ce61950e /arch/arm/include/asm | |
parent | dma-direct: remove the mapping_error dma_map_ops method (diff) | |
download | linux-72fd97bf4e75e37552640614a0ea98897fc1dd77.tar.xz linux-72fd97bf4e75e37552640614a0ea98897fc1dd77.zip |
arm: remove the mapping_error dma_map_ops method
Arm 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: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r-- | arch/arm/include/asm/dma-iommu.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/include/asm/dma-iommu.h b/arch/arm/include/asm/dma-iommu.h index 6821f1249300..772f48ef84b7 100644 --- a/arch/arm/include/asm/dma-iommu.h +++ b/arch/arm/include/asm/dma-iommu.h @@ -9,8 +9,6 @@ #include <linux/dma-debug.h> #include <linux/kref.h> -#define ARM_MAPPING_ERROR (~(dma_addr_t)0x0) - struct dma_iommu_mapping { /* iommu specific data */ struct iommu_domain *domain; |