summaryrefslogtreecommitdiffstats
path: root/board/ronetix
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2017-06-26 19:13:04 -0500
committerTom Rini <trini@konsulko.com>2017-07-11 22:41:51 -0400
commit2ecba112d79c49b9ca21cf712132c9746a6f4216 (patch)
tree1ea44acc8396c914d3b88acd7616cd3fb609dbab /board/ronetix
parent31f8d39e2a6711b44ef6ec5fc1923f67ddbf1de5 (diff)
downloadu-boot-2ecba112d79c49b9ca21cf712132c9746a6f4216.tar.gz
u-boot-2ecba112d79c49b9ca21cf712132c9746a6f4216.tar.xz
u-boot-2ecba112d79c49b9ca21cf712132c9746a6f4216.zip
board: ronetix: 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/ronetix')
-rw-r--r--board/ronetix/pm9261/pm9261.c2
-rw-r--r--board/ronetix/pm9263/pm9263.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/board/ronetix/pm9261/pm9261.c b/board/ronetix/pm9261/pm9261.c
index f60dddac7b..160f8f86d1 100644
--- a/board/ronetix/pm9261/pm9261.c
+++ b/board/ronetix/pm9261/pm9261.c
@@ -195,7 +195,7 @@ void lcd_show_board_info(void)
nand_size = 0;
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;
flash_size = 0;
for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
diff --git a/board/ronetix/pm9263/pm9263.c b/board/ronetix/pm9263/pm9263.c
index 1469136295..0c23bb6c65 100644
--- a/board/ronetix/pm9263/pm9263.c
+++ b/board/ronetix/pm9263/pm9263.c
@@ -294,7 +294,7 @@ void lcd_show_board_info(void)
nand_size = 0;
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;
flash_size = 0;
for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)