diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-06-26 19:13:05 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-11 22:41:52 -0400 |
commit | 573cc46c652865325690d1559cea221692687872 (patch) | |
tree | 845b1c58552a3ffa8fef46926530855c24decc7d /board/BuR | |
parent | 2ecba112d79c49b9ca21cf712132c9746a6f4216 (diff) | |
download | u-boot-573cc46c652865325690d1559cea221692687872.tar.gz u-boot-573cc46c652865325690d1559cea221692687872.tar.bz2 u-boot-573cc46c652865325690d1559cea221692687872.zip |
board: BuR: 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.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/BuR')
-rw-r--r-- | board/BuR/common/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c index e8c64018eb..c3a56db76a 100644 --- a/board/BuR/common/common.c +++ b/board/BuR/common/common.c @@ -259,7 +259,8 @@ static int load_devicetree(void) } #ifdef CONFIG_NAND dtbsize = 0x20000; - rc = nand_read_skip_bad(nand_info[0], 0x40000, (size_t *)&dtbsize, + rc = nand_read_skip_bad(get_nand_dev_by_index(0), 0x40000, + (size_t *)&dtbsize, NULL, 0x20000, (u_char *)dtbaddr); #else char *dtbname = getenv("dtb"); |