diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-06-26 19:13:06 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-11 22:41:52 -0400 |
commit | bf264cd0f61568404e717eb067e3e2e825715531 (patch) | |
tree | 7333e2a04edd0af389a27a28053eee9d8ccf0b94 /board/toradex/colibri_t20/colibri_t20.c | |
parent | 573cc46c652865325690d1559cea221692687872 (diff) |
board: toradex: 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.
Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Diffstat (limited to 'board/toradex/colibri_t20/colibri_t20.c')
-rw-r--r-- | board/toradex/colibri_t20/colibri_t20.c | 2 |
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; |