]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: adjust dma_free_coherent for i386
authorGlauber Costa <gcosta@redhat.com>
Tue, 8 Apr 2008 16:20:59 +0000 (13:20 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:58 +0000 (19:19 +0200)
We call unmap_single, if available.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/pci-dma_32.c

index 9199bccb9214c959196128b19de6495594cd7814..5ae3470113c64f507ed5037d12e537c8bb349d04 100644 (file)
@@ -80,6 +80,8 @@ void dma_free_coherent(struct device *dev, size_t size,
        WARN_ON(irqs_disabled());       /* for portability */
        if (dma_release_coherent(dev, order, vaddr))
                return;
+       if (dma_ops->unmap_single)
+               dma_ops->unmap_single(dev, dma_handle, size, 0);
        free_pages((unsigned long)vaddr, order);
 }
 EXPORT_SYMBOL(dma_free_coherent);