summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/zynq_nand.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/zynq_nand.c')
-rw-r--r--drivers/mtd/nand/zynq_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/zynq_nand.c b/drivers/mtd/nand/zynq_nand.c
index cb3340d9b0..948f05984c 100644
--- a/drivers/mtd/nand/zynq_nand.c
+++ b/drivers/mtd/nand/zynq_nand.c
@@ -1008,7 +1008,7 @@ static int zynq_nand_init(struct nand_chip *nand_chip, int devnum)
}
xnand->nand_base = (void __iomem *)ZYNQ_NAND_BASEADDR;
- mtd = (struct mtd_info *)&nand_info[0];
+ mtd = get_nand_dev_by_index(0);
nand_chip->priv = xnand;
mtd->priv = nand_chip;