summaryrefslogtreecommitdiffstats
path: root/board/esd/common/esd405ep_nand.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/esd/common/esd405ep_nand.c')
-rw-r--r--board/esd/common/esd405ep_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/esd/common/esd405ep_nand.c b/board/esd/common/esd405ep_nand.c
index f46936ca36..51ac10c8c0 100644
--- a/board/esd/common/esd405ep_nand.c
+++ b/board/esd/common/esd405ep_nand.c
@@ -16,7 +16,7 @@
*/
static void esd405ep_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
{
- struct nand_chip *this = mtd->priv;
+ struct nand_chip *this = mtd_to_nand(mtd);
if (ctrl & NAND_CTRL_CHANGE) {
if ( ctrl & NAND_CLE )
out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CONFIG_SYS_NAND_CLE);
OpenPOWER on IntegriCloud