From 90db3fd40878164639b84b9b197a6d5f2cfe08c0 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Fri, 18 Jan 2008 10:30:57 -0800 Subject: [PATCH] MTD: Fix compile for omap-hw.c Fix compile for omap-hw.c Signed-off-by: Tony Lindgren --- drivers/mtd/nand/omap-hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/omap-hw.c b/drivers/mtd/nand/omap-hw.c index 330a9dca272..77817ebf01f 100644 --- a/drivers/mtd/nand/omap-hw.c +++ b/drivers/mtd/nand/omap-hw.c @@ -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))); } -- 2.41.1