diff options
author | Christoph Hellwig <hch@lst.de> | 2018-11-21 18:56:25 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-12-06 06:56:38 -0800 |
commit | d11e3d3d03360cd49497c837490576f793baf746 (patch) | |
tree | ae98b833e1b5a95e1ae662d4fdbc116bd2e3799f /arch/powerpc/platforms/cell/iommu.c | |
parent | 72fd97bf4e75e37552640614a0ea98897fc1dd77 (diff) | |
download | kernel_replicant_linux-d11e3d3d03360cd49497c837490576f793baf746.tar.gz kernel_replicant_linux-d11e3d3d03360cd49497c837490576f793baf746.tar.bz2 kernel_replicant_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/platforms/cell/iommu.c')
-rw-r--r-- | arch/powerpc/platforms/cell/iommu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c index 12352a58072a..af2a3c15e0ec 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c @@ -654,7 +654,6 @@ static const struct dma_map_ops dma_iommu_fixed_ops = { .dma_supported = dma_suported_and_switch, .map_page = dma_fixed_map_page, .unmap_page = dma_fixed_unmap_page, - .mapping_error = dma_iommu_mapping_error, }; static void cell_dma_dev_setup(struct device *dev) |