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/mxs_nand_spl.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/mxs_nand_spl.c')
-rw-r--r-- | drivers/mtd/nand/mxs_nand_spl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxs_nand_spl.c b/drivers/mtd/nand/mxs_nand_spl.c index a8a3084..ff28df4 100644 --- a/drivers/mtd/nand/mxs_nand_spl.c +++ b/drivers/mtd/nand/mxs_nand_spl.c @@ -147,7 +147,7 @@ static int mxs_nand_init(void) /* init mxs nand driver */ board_nand_init(&nand_chip); - mtd = &nand_chip.mtd; + mtd = nand_to_mtd(&nand_chip); /* set mtd functions */ nand_chip.cmdfunc = mxs_nand_command; nand_chip.numchips = 1; |