summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-24 18:19:54 -0600
committerTom Rini <trini@konsulko.com>2016-10-06 14:48:19 -0400
commitca12e65caa42dc9c095cce0990ae94d41cf62a71 (patch)
treed13eab6bd8ed99eb98c15aef9a7e85b260a244f2 /common
parent71316c1d8c1799b444d14cfb00eaacb6cf1ce44a (diff)
spl: Add a parameter to jump_to_image_linux()
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')
-rw-r--r--common/spl/spl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 7f67d41e49c..6d071312bc5 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -474,7 +474,8 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
case IH_OS_LINUX:
debug("Jumping to Linux\n");
spl_board_prepare_for_linux();
- jump_to_image_linux((void *)CONFIG_SYS_SPL_ARGS_ADDR);
+ jump_to_image_linux(&spl_image,
+ (void *)CONFIG_SYS_SPL_ARGS_ADDR);
#endif
default:
debug("Unsupported OS image.. Jumping nevertheless..\n");