diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-06-15 20:56:10 +0200 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-06-19 19:28:38 -0500 |
commit | 30780f948346436f9974fd6eae89aa2eb841b436 (patch) | |
tree | 599a91d29770520d33c50da9572a4b068017ada0 /drivers/mtd/nand/atmel_nand.c | |
parent | caad0d00a8bc3d44ca6581030b95dce97386689c (diff) | |
download | u-boot-imx-30780f948346436f9974fd6eae89aa2eb841b436.zip u-boot-imx-30780f948346436f9974fd6eae89aa2eb841b436.tar.gz u-boot-imx-30780f948346436f9974fd6eae89aa2eb841b436.tar.bz2 |
mtd: nand: Patch remaining places where nand_to_mtd() should be used
Some drivers are still directly accessing the chip->mtd field. Patch
them to use nand_to_mtd() instead.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand/atmel_nand.c')
-rw-r--r-- | drivers/mtd/nand/atmel_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 75e8307..a66cfc1 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -1448,7 +1448,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; |