Skip to content
Snippets Groups Projects
Commit f370b515 authored by Grygorii Strashko's avatar Grygorii Strashko Committed by Tom Rini
Browse files

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: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
parent 16520189
No related branches found
No related tags found
No related merge requests found
...@@ -465,7 +465,7 @@ static int do_imls_nand(void) ...@@ -465,7 +465,7 @@ static int do_imls_nand(void)
printf("\n"); printf("\n");
for (nand_dev = 0; nand_dev < CONFIG_SYS_MAX_NAND_DEVICE; nand_dev++) { 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) if (!mtd->name || !mtd->size)
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment