]> err.no Git - linux-2.6/commitdiff
powerpc/vio: More fallout from dma_mapping_error API change
authorStephen Rothwell <sfr@canb.auug.org.au>
Sun, 27 Jul 2008 16:22:14 +0000 (02:22 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Jul 2008 06:30:51 +0000 (16:30 +1000)
arch/powerpc/kernel/vio.c:533: error: too few arguments to function 'dma_mapping_error'

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/vio.c

index 6952384cf89c59d22aebf91235bab16c470e69af..22a3c33fd7513c5288cef156f931f62a1c4f41df 100644 (file)
@@ -530,7 +530,7 @@ static dma_addr_t vio_dma_iommu_map_single(struct device *dev, void *vaddr,
        }
 
        ret = dma_iommu_ops.map_single(dev, vaddr, size, direction, attrs);
-       if (unlikely(dma_mapping_error(ret))) {
+       if (unlikely(dma_mapping_error(dev, ret))) {
                vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE));
                atomic_inc(&viodev->cmo.allocs_failed);
        }