Patchwork [3/7] mtd: Blackfin NFC: fix typo for read/write delay setup

login
register
mail settings
Submitter Mike Frysinger
Date Aug. 5, 2010, 3:07 p.m.
Message ID <1281020864-26842-3-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/60983/
State Accepted
Commit 00355b0baadf949f02ab7d3e2bd222e3fbcc72ee
Headers show

Comments

Mike Frysinger - Aug. 5, 2010, 3:07 p.m.
From: Barry Song <barry.song@analog.com>

We used the platform rd_dly field when we meant to use the wr_dly field.

Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 drivers/mtd/nand/bf5xx_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c
index 81a05cd..b553705 100644
--- a/drivers/mtd/nand/bf5xx_nand.c
+++ b/drivers/mtd/nand/bf5xx_nand.c
@@ -632,7 +632,7 @@  static int bf5xx_nand_hw_init(struct bf5xx_nand_info *info)
 	val = (plat->page_size << NFC_PG_SIZE_OFFSET) |
 		(plat->data_width << NFC_NWIDTH_OFFSET) |
 		(plat->rd_dly << NFC_RDDLY_OFFSET) |
-		(plat->rd_dly << NFC_WRDLY_OFFSET);
+		(plat->wr_dly << NFC_WRDLY_OFFSET);
 	dev_dbg(info->device, "NFC_CTL is 0x%04x\n", val);
 
 	bfin_write_NFC_CTL(val);