]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ppc32: Fix thinko in PCI_DMA_FOO to DMA_FOO conversion
authorAndrew Morton <akpm@osdl.org>
Tue, 16 Mar 2004 23:07:29 +0000 (15:07 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 16 Mar 2004 23:07:29 +0000 (15:07 -0800)
From: Tom Rini <trini@kernel.crashing.org>

When I converted the use of PCI_DMA_foo constants to DMA_foo constants, I
forgot that it's PCI_DMA_FROMDEVICE and DMA_FROM_DEVICE.  The following
fixes that.

arch/ppc/mm/cachemap.c

index aff6493a1c7e59f9746247b4c0c1d305a17e48a7..f8246def9b0cd61d44fc7b572d2c3bb18b1b35f1 100644 (file)
@@ -145,7 +145,7 @@ void consistent_sync(void *vaddr, size_t size, int direction)
        switch (direction) {
        case DMA_NONE:
                BUG();
-       case DMA_FROMDEVICE:    /* invalidate only */
+       case DMA_FROM_DEVICE:   /* invalidate only */
                invalidate_dcache_range(start, end);
                break;
        case DMA_TODEVICE:              /* writeback only */