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/lpc32xx_nand_mlc.c | |
parent | caad0d00a8bc3d44ca6581030b95dce97386689c (diff) |
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/lpc32xx_nand_mlc.c')
-rw-r--r-- | drivers/mtd/nand/lpc32xx_nand_mlc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/lpc32xx_nand_mlc.c b/drivers/mtd/nand/lpc32xx_nand_mlc.c index 42620298196..a7931153315 100644 --- a/drivers/mtd/nand/lpc32xx_nand_mlc.c +++ b/drivers/mtd/nand/lpc32xx_nand_mlc.c @@ -541,7 +541,7 @@ static struct nand_chip lpc32xx_chip; void board_nand_init(void) { - struct mtd_info *mtd = &lpc32xx_chip.mtd; + struct mtd_info *mtd = nand_to_mtd(&lpc32xx_chip); int ret; /* Set all BOARDSPECIFIC (actually core-specific) fields */ |