]> git.sur5r.net Git - u-boot/blobdiff - board/atmel/sama5d4_xplained/sama5d4_xplained.c
nand: Embed mtd_info in struct nand_chip
[u-boot] / board / atmel / sama5d4_xplained / sama5d4_xplained.c
index f4eef9609fec17237e5674d0e6ec268093255fba..23ec2744684aedc5a6cecb4f423dd58e59f84836 100644 (file)
@@ -191,7 +191,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 += nand_info[i]->size;
 #endif
        lcd_printf("%ld MB SDRAM, %ld MB NAND\n",
                   dram_size >> 20, nand_size >> 20);