summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/dma-swiotlb.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-08-04 21:08:27 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-08-28 06:24:11 +0200
commit4a9a6bfe707cfe5bcb0a20eabe240293a095cd10 (patch)
tree6a0fed231234d6b38afe7f03bf82048569da16aa /arch/powerpc/kernel/dma-swiotlb.c
parentpowerpc: Use asm-generic/dma-mapping-common.h (diff)
downloadlinux-4a9a6bfe707cfe5bcb0a20eabe240293a095cd10.tar.xz
linux-4a9a6bfe707cfe5bcb0a20eabe240293a095cd10.zip
powerpc: Handle SWIOTLB mapping error properly
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to '')
-rw-r--r--arch/powerpc/kernel/dma-swiotlb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/dma-swiotlb.c b/arch/powerpc/kernel/dma-swiotlb.c
index d1143a68d82a..e96cbbd9b449 100644
--- a/arch/powerpc/kernel/dma-swiotlb.c
+++ b/arch/powerpc/kernel/dma-swiotlb.c
@@ -42,7 +42,8 @@ struct dma_map_ops swiotlb_dma_ops = {
.sync_single_range_for_cpu = swiotlb_sync_single_range_for_cpu,
.sync_single_range_for_device = swiotlb_sync_single_range_for_device,
.sync_sg_for_cpu = swiotlb_sync_sg_for_cpu,
- .sync_sg_for_device = swiotlb_sync_sg_for_device
+ .sync_sg_for_device = swiotlb_sync_sg_for_device,
+ .mapping_error = swiotlb_dma_mapping_error,
};
void pci_dma_dev_setup_swiotlb(struct pci_dev *pdev)