diff options
author | Ye Li <ye.li@nxp.com> | 2016-05-31 16:32:00 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-04-05 14:04:27 +0800 |
commit | 712cbc4f23fa4276ae652b8767fd5a0646fab1da (patch) | |
tree | 9c2beb0572a11172b2804d2824c0a91e210cea93 | |
parent | 37d7f9614aa357f270312d7ceaab0f7006dc5aea (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>
(cherry picked from commit 0b65071afaae9d6a49fb7dda2902f5c8bcd678c2)
-rw-r--r-- | drivers/mtd/nand/mxs_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c index ca73de6..34c0310 100644 --- a/drivers/mtd/nand/mxs_nand.c +++ b/drivers/mtd/nand/mxs_nand.c @@ -806,7 +806,7 @@ static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand, if (status[i] == 0xff) { if (is_mx6dqp() || is_mx7() || is_mx6ul()) - if (readl(bch_regs->hw_bch_debug1)) + if (readl(&bch_regs->hw_bch_debug1)) flag = 1; continue; } |