MLK-20233 imx8: Fix QSPI read in container parser
authorAbel Vesa <abel.vesa@nxp.com>
Wed, 7 Nov 2018 16:12:22 +0000 (18:12 +0200)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 09:39:10 +0000 (02:39 -0700)
commit3315434256ac6acc0e6b7f736fb805630196abe0
tree80233dcdbb2954d5bb5a605b86c193d5a9a7e9c0
parentf3321ce8e5bb1ce715a1ede0bcf2212e749f1094
MLK-20233 imx8: Fix QSPI read in container parser

The check for CONFIG_SPL_SPI_LOAD is fixed, get rid of ret local variable
(that's actually a bug) and fix the length for the spi_flash_read call.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 32adc4aed8864fe274de13f14f4e29759062ee1d)
arch/arm/mach-imx/imx8/parser.c