]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/ronetix/pm9263/pm9263.c
board: ronetix: use get_nand_dev_by_index()
[people/ms/u-boot.git] / board / ronetix / pm9263 / pm9263.c
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++)