summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-05-31 16:32:00 +0800
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-01-11 21:25:09 +0100
commitb89000425a0352f92a240e704c6aea9294bc525b (patch)
tree52552de1efb987bd28ec97fd3d8795a58e3ff4fe /drivers
parent17053e88b3be38762664332a55b9e9217b3da9a2 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/mxs_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c
index 43f00a5457..e3cdba8d5c 100644
--- a/drivers/mtd/nand/mxs_nand.c
+++ b/drivers/mtd/nand/mxs_nand.c
@@ -805,7 +805,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;
}