summaryrefslogtreecommitdiff
path: root/board/toradex/colibri_t20/colibri_t20.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/toradex/colibri_t20/colibri_t20.c')
-rw-r--r--board/toradex/colibri_t20/colibri_t20.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/toradex/colibri_t20/colibri_t20.c b/board/toradex/colibri_t20/colibri_t20.c
index 7d574fbdab..71b8fd3ede 100644
--- a/board/toradex/colibri_t20/colibri_t20.c
+++ b/board/toradex/colibri_t20/colibri_t20.c
@@ -69,7 +69,7 @@ int checkboard(void)
{
printf("Model: Toradex Colibri T20 %dMB V%s\n",
(gd->ram_size == 0x10000000) ? 256 : 512,
- (nand_info[0]->erasesize >> 10 == 512) ?
+ (get_nand_dev_by_index(0)->erasesize >> 10 == 512) ?
((gd->ram_size == 0x10000000) ? "1.1B" : "1.1C") : "1.2A");
return 0;