]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ronetix: use get_nand_dev_by_index()
authorGrygorii Strashko <grygorii.strashko@ti.com>
Tue, 27 Jun 2017 00:13:04 +0000 (19:13 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 12 Jul 2017 02:41:51 +0000 (22:41 -0400)
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>
board/ronetix/pm9261/pm9261.c
board/ronetix/pm9263/pm9263.c

index f60dddac7b8fa315763d035c1b4d13196f607189..160f8f86d1726ddec3a8bac6edeeb81f4f1dfd02 100644 (file)
@@ -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++)
index 146913629514ffbb31ec91c81dd5315b432217bf..0c23bb6c65ba2551c229bfd05ef150ac22840705 100644 (file)
@@ -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++)