]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
MTD: Fix compile for omap-hw.c
authorTony Lindgren <tony@atomide.com>
Fri, 18 Jan 2008 18:30:57 +0000 (10:30 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 18 Jan 2008 18:30:57 +0000 (10:30 -0800)
Fix compile for omap-hw.c

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/mtd/nand/omap-hw.c

index 330a9dca272e8743751b1296fd55529be985ab92..77817ebf01f6de6ddcb250b2692b0a1ba503a450 100644 (file)
@@ -256,7 +256,7 @@ static void omap_nand_dma_transfer(struct mtd_info *mtd, void *addr,
        init_completion(&omap_nand_dma_comp);
 
        len = u32_count << 2;
-       consistent_sync(addr, len, DMA_TO_DEVICE);
+       dma_cache_maint(addr, len, DMA_TO_DEVICE);
        omap_start_dma(dma_ch);
        jiffies_before = jiffies;
        timeout = wait_for_completion_timeout(&omap_nand_dma_comp,
@@ -279,7 +279,7 @@ static void omap_nand_dma_transfer(struct mtd_info *mtd, void *addr,
                }
        }
        if (!is_write)
-               consistent_sync(addr, len, DMA_FROM_DEVICE);
+               dma_cache_maint(addr, len, DMA_FROM_DEVICE);
 
        nand_write_reg(NND_CTRL, nand_read_reg(NND_CTRL) & ~((1 << 16) | (1 << 17)));
 }