summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/atmel_nand.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-06-20 05:15:52 -0400
committerTom Rini <trini@konsulko.com>2016-06-20 05:15:52 -0400
commit2313d48445e59f063ec9a3b4940fe8252737db76 (patch)
treede829dc59a4b4437ddf5f3f2bde8c56ffda17395 /drivers/mtd/nand/atmel_nand.c
parent1a3619cf825fcef15ebe0fac6d65a9af1bc0588c (diff)
parent30780f948346436f9974fd6eae89aa2eb841b436 (diff)
Merge git://git.denx.de/u-boot-nand-flash
Diffstat (limited to 'drivers/mtd/nand/atmel_nand.c')
-rw-r--r--drivers/mtd/nand/atmel_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index ad5ded3a56..8669432deb 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -1449,7 +1449,7 @@ int board_nand_init(struct nand_chip *nand)
void nand_init(void)
{
- mtd = &nand_chip.mtd;
+ mtd = nand_to_mtd(&nand_chip);
mtd->writesize = CONFIG_SYS_NAND_PAGE_SIZE;
mtd->oobsize = CONFIG_SYS_NAND_OOBSIZE;
nand_chip.IO_ADDR_R = (void __iomem *)CONFIG_SYS_NAND_BASE;