From 0b65071afaae9d6a49fb7dda2902f5c8bcd678c2 Mon Sep 17 00:00:00 2001
From: Ye Li <ye.li@nxp.com>
Date: Tue, 31 May 2016 16:32:00 +0800
Subject: [PATCH] MLK-12865 Nand: Fix BCH debug1 register access issue

Should have "&" to access the register address, otherwise uboot will hang.

Signed-off-by: Ye Li <ye.li@nxp.com>
---
 drivers/mtd/nand/mxs_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c
index e54f888..1cf3d11 100644
--- a/drivers/mtd/nand/mxs_nand.c
+++ b/drivers/mtd/nand/mxs_nand.c
@@ -800,7 +800,7 @@ static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand,
 		if (status[i] == 0xff) {
 			if (is_mx6dqp() || is_soc_type(MXC_SOC_MX7) ||
 			    is_cpu_type(MXC_CPU_MX6UL))
-				if (readl(bch_regs->hw_bch_debug1))
+				if (readl(&bch_regs->hw_bch_debug1))
 					flag = 1;
 			continue;
 		}
-- 
1.9.1