diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-06-26 19:12:56 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-11 22:41:46 -0400 |
commit | edba8cc4f363112597466909e99b20a3b4469447 (patch) | |
tree | 6878b102da6e1df59847e4fdfeeea1d1fffd2410 /common/splash_source.c | |
parent | bfdba68eac662bd5cf1a423aec91fce35ee40312 (diff) | |
download | u-boot-edba8cc4f363112597466909e99b20a3b4469447.tar.gz |
common: 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>
Diffstat (limited to 'common/splash_source.c')
-rw-r--r-- | common/splash_source.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/splash_source.c b/common/splash_source.c index ee055ddf15..867a798487 100644 --- a/common/splash_source.c +++ b/common/splash_source.c @@ -47,9 +47,10 @@ static int splash_sf_read_raw(u32 bmp_load_addr, int offset, size_t read_size) #ifdef CONFIG_CMD_NAND static int splash_nand_read_raw(u32 bmp_load_addr, int offset, size_t read_size) { - return nand_read_skip_bad(nand_info[nand_curr_device], offset, + struct mtd_info *mtd = get_nand_dev_by_index(nand_curr_device); + return nand_read_skip_bad(mtd, offset, &read_size, NULL, - nand_info[nand_curr_device]->size, + mtd->size, (u_char *)bmp_load_addr); } #else |