]> git.hungrycats.org Git - linux/commitdiff
[PATCH] PPC32 build fix
authorAndrew Morton <akpm@osdl.org>
Thu, 1 Apr 2004 05:49:57 +0000 (21:49 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 1 Apr 2004 05:49:57 +0000 (21:49 -0800)
From: Matt Porter <mporter@kernel.crashing.org>

This fixes the build on non cache coherent PPC32 platforms.

arch/ppc/mm/cachemap.c

index f8246def9b0cd61d44fc7b572d2c3bb18b1b35f1..2033eec9b73b79ba3cd33c2750cd8d2de248cd7b 100644 (file)
@@ -148,7 +148,7 @@ void consistent_sync(void *vaddr, size_t size, int direction)
        case DMA_FROM_DEVICE:   /* invalidate only */
                invalidate_dcache_range(start, end);
                break;
-       case DMA_TODEVICE:              /* writeback only */
+       case DMA_TO_DEVICE:             /* writeback only */
                clean_dcache_range(start, end);
                break;
        case DMA_BIDIRECTIONAL: /* writeback and invalidate */