]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: nand: omap: read nand using register address
authorAfzal Mohammed <afzal@ti.com>
Sat, 29 Sep 2012 05:52:21 +0000 (11:22 +0530)
committerAfzal Mohammed <afzal@ti.com>
Mon, 15 Oct 2012 09:11:58 +0000 (14:41 +0530)
Now that gpmc-nand registers are available in driver, use it
to read nand data.

"65b97cf  mtd: nand: omap2: handle nand on gpmc" modified all
other instances. After initial versions of that patch, a new
change added reading nand data using gpmc exposed function.
In the final version this change was not taken care.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
drivers/mtd/nand/omap2.c

index 4c331356a882dcd1993b00013ba7b46078da312c..abfc602c4cfc68c829be6ef115ee3ce0e17dec63 100644 (file)
@@ -996,7 +996,7 @@ static int omap_wait(struct mtd_info *mtd, struct nand_chip *chip)
                cond_resched();
        }
 
-       status = gpmc_nand_read(info->gpmc_cs, GPMC_NAND_DATA);
+       status = readb(info->reg.gpmc_nand_data);
        return status;
 }