summaryrefslogtreecommitdiff
path: root/common/spl/spl_net.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-25 00:19:53 (GMT)
committerTom Rini <trini@konsulko.com>2016-10-06 18:48:17 (GMT)
commit71316c1d8c1799b444d14cfb00eaacb6cf1ce44a (patch)
treed7c0b1c644dfdeed26c7cfe5804a7dbdd8584026 /common/spl/spl_net.c
parentd95ceb97c0ca158605372634a860651ca925915a (diff)
downloadu-boot-71316c1d8c1799b444d14cfb00eaacb6cf1ce44a.tar.xz
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_net.c')
-rw-r--r--common/spl/spl_net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c
index ae71d26..f417d17 100644
--- a/common/spl/spl_net.c
+++ b/common/spl/spl_net.c
@@ -34,5 +34,6 @@ int spl_net_load_image(const char *device)
printf("Problem booting with BOOTP\n");
return rv;
}
- return spl_parse_image_header((struct image_header *)load_addr);
+ return spl_parse_image_header(&spl_image,
+ (struct image_header *)load_addr);
}