mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
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>
This commit is contained in:
parent
1652018991
commit
f370b51510
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue