From: Tony Lindgren Date: Fri, 18 Jan 2008 18:30:57 +0000 (-0800) Subject: MTD: Fix compile for omap-hw.c X-Git-Tag: v2.6.24-omap1~56 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=90db3fd40878164639b84b9b197a6d5f2cfe08c0;p=linux-2.6-omap-h63xx.git MTD: Fix compile for omap-hw.c Fix compile for omap-hw.c Signed-off-by: Tony Lindgren --- 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))); }