diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-06-26 19:12:54 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-11 22:41:45 -0400 |
commit | f370b515108987a14e8fa5bfafe25a4f26e1d298 (patch) | |
tree | 1d7f5f8fd4748fc73699eaec56058fed1d37a748 /cmd | |
parent | 16520189918ef7cbebbb3022e0674fd7e365ab03 (diff) | |
download | u-boot-f370b515108987a14e8fa5bfafe25a4f26e1d298.tar.gz u-boot-f370b515108987a14e8fa5bfafe25a4f26e1d298.tar.xz u-boot-f370b515108987a14e8fa5bfafe25a4f26e1d298.zip |
cmd: bootm: use get_nand_dev_by_index()
As part of preparation for nand DM conversion the new API has been
introduced to remove direct access to nand_info array. So, use it here
instead of accessing to nand_info array directly.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bootm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootm.c b/cmd/bootm.c index 953a57de33..daf15d9e80 100644 --- a/cmd/bootm.c +++ b/cmd/bootm.c @@ -465,7 +465,7 @@ static int do_imls_nand(void) printf("\n"); for (nand_dev = 0; nand_dev < CONFIG_SYS_MAX_NAND_DEVICE; nand_dev++) { - mtd = nand_info[nand_dev]; + mtd = get_nand_dev_by_index(nand_dev); if (!mtd->name || !mtd->size) continue; |