]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fix addressing bug in the OMAP16xx HW NAND driver
authorJuha Yrjola <juha.yrjola@nokia.com>
Fri, 10 Feb 2006 14:35:13 +0000 (16:35 +0200)
committerJuha Yrjola <juha.yrjola@nokia.com>
Fri, 10 Feb 2006 14:35:13 +0000 (16:35 +0200)
The DMA register read was done to an incorrent address.

Signed-off-by: Juha Yrjölä <juha.yrjola@nokia.com>
drivers/mtd/nand/omap-hw.c

index 95d4866407d2aa94b3dcd189b43ad3921d78d64a..d0e7e829e7144e725ae8f12210aa1ef7306d59ae 100644 (file)
@@ -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");