mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
spl: Add a parameter to spl_parse_image_header()
Instead of using the global spl_image variable, pass the required struct in as an argument. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
d95ceb97c0
commit
71316c1d8c
14 changed files with 58 additions and 39 deletions
|
@ -48,7 +48,7 @@ int spl_load_image_ext(struct blk_desc *block_dev,
|
|||
goto end;
|
||||
}
|
||||
|
||||
err = spl_parse_image_header(header);
|
||||
err = spl_parse_image_header(&spl_image, header);
|
||||
if (err < 0) {
|
||||
puts("spl: ext: failed to parse image header\n");
|
||||
goto end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue