diff options
author | Christoph Hellwig <hch@lst.de> | 2018-11-21 18:56:25 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-06 15:56:38 +0100 |
commit | d11e3d3d03360cd49497c837490576f793baf746 (patch) | |
tree | ae98b833e1b5a95e1ae662d4fdbc116bd2e3799f /arch/powerpc/include | |
parent | arm: remove the mapping_error dma_map_ops method (diff) | |
download | linux-d11e3d3d03360cd49497c837490576f793baf746.tar.xz linux-d11e3d3d03360cd49497c837490576f793baf746.zip |
powerpc/iommu: remove the mapping_error dma_map_ops method
The powerpc iommu 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>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/iommu.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/iommu.h b/arch/powerpc/include/asm/iommu.h index 35db0cbc9222..55312990d1d2 100644 --- a/arch/powerpc/include/asm/iommu.h +++ b/arch/powerpc/include/asm/iommu.h @@ -143,8 +143,6 @@ struct scatterlist; #ifdef CONFIG_PPC64 -#define IOMMU_MAPPING_ERROR (~(dma_addr_t)0x0) - static inline void set_iommu_table_base(struct device *dev, struct iommu_table *base) { @@ -242,8 +240,6 @@ static inline int __init tce_iommu_bus_notifier_init(void) } #endif /* !CONFIG_IOMMU_API */ -int dma_iommu_mapping_error(struct device *dev, dma_addr_t dma_addr); - #else static inline void *get_iommu_table_base(struct device *dev) |