summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-21 14:17:10 +0200
committerChristoph Hellwig <hch@lst.de>2017-06-28 06:54:33 -0700
commit6009faa43f804c99b3d8fff94fa1e0692be70358 (patch)
tree05168471d1bc2b5d056a7e77bdc1bfd8ff844eb2 /arch/powerpc/platforms/cell
parentceaf481c4f6ae6090288528825abc7d051bb1032 (diff)
downloadop-kernel-dev-6009faa43f804c99b3d8fff94fa1e0692be70358.zip
op-kernel-dev-6009faa43f804c99b3d8fff94fa1e0692be70358.tar.gz
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/platforms/cell')
-rw-r--r--arch/powerpc/platforms/cell/iommu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c
index 71b995bb..948086e 100644
--- a/arch/powerpc/platforms/cell/iommu.c
+++ b/arch/powerpc/platforms/cell/iommu.c
@@ -660,6 +660,7 @@ static const struct dma_map_ops dma_iommu_fixed_ops = {
.set_dma_mask = dma_set_mask_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_fixed(struct device *dev);
OpenPOWER on IntegriCloud