From 43505ca85d89c40df4d6e6317d6b5096a83ee426 Mon Sep 17 00:00:00 2001 From: Juha Yrjola Date: Fri, 10 Feb 2006 16:35:13 +0200 Subject: [PATCH] ARM: OMAP: Fix addressing bug in the OMAP16xx HW NAND driver MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The DMA register read was done to an incorrent address. Signed-off-by: Juha Yrjölä --- drivers/mtd/nand/omap-hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/omap-hw.c b/drivers/mtd/nand/omap-hw.c index 95d4866407d..d0e7e829e71 100644 --- a/drivers/mtd/nand/omap-hw.c +++ b/drivers/mtd/nand/omap-hw.c @@ -269,7 +269,7 @@ static void omap_nand_dma_transfer(struct mtd_info *mtd, void *addr, printk(KERN_WARNING "omap-hw-nand: DMA timeout after %u ms, max. seen latency %u ms\n", jiffies_to_msecs(jiffies_spent), jiffies_to_msecs(max_jiffies)); - if (omap_readw(OMAP_DMA_CCR_REG(dma_ch)) & (1 << 7)) { + if (OMAP_DMA_CCR_REG(dma_ch) & (1 << 7)) { /* If the DMA transfer is still running, something * is really wrong. */ printk(KERN_ERR "omap-hw-nand: DMA transfer still running. Not good.\n"); -- 2.41.3