From ca12e65caa42dc9c095cce0990ae94d41cf62a71 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 24 Sep 2016 18:19:54 -0600 Subject: 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 Reviewed-by: Tom Rini --- common/spl/spl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/spl/spl.c') diff --git a/common/spl/spl.c b/common/spl/spl.c index 7f67d41e49..6d071312bc 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"); -- cgit v1.2.3