diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-24 18:19:53 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-06 14:48:17 -0400 |
commit | 71316c1d8c1799b444d14cfb00eaacb6cf1ce44a (patch) | |
tree | d7c0b1c644dfdeed26c7cfe5804a7dbdd8584026 /common/spl/spl_ext.c | |
parent | d95ceb97c0ca158605372634a860651ca925915a (diff) | |
download | u-boot-71316c1d8c1799b444d14cfb00eaacb6cf1ce44a.tar.gz |
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>
Diffstat (limited to 'common/spl/spl_ext.c')
-rw-r--r-- | common/spl/spl_ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c index a85dc85ffe..e5af24ec8b 100644 --- a/common/spl/spl_ext.c +++ b/common/spl/spl_ext.c @@ -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; |