summaryrefslogtreecommitdiff
path: root/common/spl/spl_usb.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-24 18:20:13 -0600
committerTom Rini <trini@konsulko.com>2016-10-06 15:08:52 -0400
commit2a2ee2ac35f26f6b4dae11a225c2803291dff10e (patch)
treecdb362cf377e85a635bb54dc7bf7f54991914cd3 /common/spl/spl_usb.c
parent97d9df0a91f1c68695913518d8dfaf26c41dbb32 (diff)
downloadu-boot-imx-2a2ee2ac35f26f6b4dae11a225c2803291dff10e.zip
u-boot-imx-2a2ee2ac35f26f6b4dae11a225c2803291dff10e.tar.gz
u-boot-imx-2a2ee2ac35f26f6b4dae11a225c2803291dff10e.tar.bz2
spl: Pass spl_image as a parameter to load_image() methods
Rather than having a global variable, pass the spl_image as a parameter. This avoids BSS use, and makes it clearer what the function is actually doing. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/spl/spl_usb.c')
-rw-r--r--common/spl/spl_usb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/spl/spl_usb.c b/common/spl/spl_usb.c
index 2bc321a..aaa4f81 100644
--- a/common/spl/spl_usb.c
+++ b/common/spl/spl_usb.c
@@ -22,7 +22,8 @@ DECLARE_GLOBAL_DATA_PTR;
static int usb_stor_curr_dev = -1; /* current device */
#endif
-static int spl_usb_load_image(struct spl_boot_device *bootdev)
+static int spl_usb_load_image(struct spl_image_info *spl_image,
+ struct spl_boot_device *bootdev)
{
int err;
struct blk_desc *stor_dev;