From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grygorii Strashko Date: Fri, 10 Feb 2017 14:22:51 -0600 Subject: [U-Boot] [PATCH v3 04/17] cmd: bootm: use get_nand_dev_by_index() In-Reply-To: <20170210202304.20652-1-grygorii.strashko@ti.com> References: <20170210202304.20652-1-grygorii.strashko@ti.com> Message-ID: <20170210202304.20652-5-grygorii.strashko@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- cmd/bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bootm.c b/cmd/bootm.c index 953a57d..daf15d9 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; -- 2.10.1.dirty