diff options
author | Afzal Mohammed <afzal@ti.com> | 2012-09-29 11:22:21 +0530 |
---|---|---|
committer | Afzal Mohammed <afzal@ti.com> | 2012-10-15 14:41:58 +0530 |
commit | 4ea1e4ba7bec0a3d490a846376140643e4860536 (patch) | |
tree | cce3b1c9848f31a5dd490689d58e424afd273178 /drivers | |
parent | 48b51d4dda3195320ec95b3393f44bfb060653c1 (diff) | |
download | op-kernel-dev-4ea1e4ba7bec0a3d490a846376140643e4860536.zip op-kernel-dev-4ea1e4ba7bec0a3d490a846376140643e4860536.tar.gz |
mtd: nand: omap: read nand using register address
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/omap2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 4c33135..abfc602 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c @@ -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; } |