summaryrefslogtreecommitdiffstats
path: root/board/atmel/sama5d4ek
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2017-06-26 19:13:03 -0500
committerTom Rini <trini@konsulko.com>2017-07-11 22:41:51 -0400
commit31f8d39e2a6711b44ef6ec5fc1923f67ddbf1de5 (patch)
treeed320acf6dde9c6957d78f4180b6695c86773542 /board/atmel/sama5d4ek
parent7021c7e6f2fcc1d024ed2f64c2974e243f129d87 (diff)
downloadu-boot-31f8d39e2a6711b44ef6ec5fc1923f67ddbf1de5.tar.gz
u-boot-31f8d39e2a6711b44ef6ec5fc1923f67ddbf1de5.tar.xz
u-boot-31f8d39e2a6711b44ef6ec5fc1923f67ddbf1de5.zip
board: atmel: 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 'board/atmel/sama5d4ek')
-rw-r--r--board/atmel/sama5d4ek/sama5d4ek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/atmel/sama5d4ek/sama5d4ek.c b/board/atmel/sama5d4ek/sama5d4ek.c
index b2e79795f7..ba7974643e 100644
--- a/board/atmel/sama5d4ek/sama5d4ek.c
+++ b/board/atmel/sama5d4ek/sama5d4ek.c
@@ -153,7 +153,7 @@ void lcd_show_board_info(void)
nand_size = 0;
#ifdef CONFIG_NAND_ATMEL
for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
- nand_size += nand_info[i]->size;
+ nand_size += get_nand_dev_by_index(i)->size;
#endif
lcd_printf("%ld MB SDRAM, %ld MB NAND\n",
dram_size >> 20, nand_size >> 20);