]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: Pass spl_image as a parameter to load_image() methods
authorSimon Glass <sjg@chromium.org>
Sun, 25 Sep 2016 00:20:13 +0000 (18:20 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 6 Oct 2016 19:08:52 +0000 (15:08 -0400)
commit2a2ee2ac35f26f6b4dae11a225c2803291dff10e
treecdb362cf377e85a635bb54dc7bf7f54991914cd3
parent97d9df0a91f1c68695913518d8dfaf26c41dbb32
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>
15 files changed:
arch/arm/mach-sunxi/board.c
arch/arm/mach-uniphier/boot-mode/spl_board.c
arch/sandbox/cpu/spl.c
common/spl/spl.c
common/spl/spl_mmc.c
common/spl/spl_nand.c
common/spl/spl_net.c
common/spl/spl_nor.c
common/spl/spl_onenand.c
common/spl/spl_sata.c
common/spl/spl_spi.c
common/spl/spl_ubi.c
common/spl/spl_usb.c
common/spl/spl_ymodem.c
include/spl.h