diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-24 18:20:12 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-06 15:08:50 -0400 |
commit | 97d9df0a91f1c68695913518d8dfaf26c41dbb32 (patch) | |
tree | 78671e0558f13a3c3716950fdd2ee0552d43b68e /arch/sandbox/cpu | |
parent | 7ec0389354b8fd27ed1d1fb2d4f451e74f40534c (diff) | |
download | u-boot-imx-97d9df0a91f1c68695913518d8dfaf26c41dbb32.zip u-boot-imx-97d9df0a91f1c68695913518d8dfaf26c41dbb32.tar.gz u-boot-imx-97d9df0a91f1c68695913518d8dfaf26c41dbb32.tar.bz2 |
spl: Convert spl_board_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit
switch() code. Update existing users.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/sandbox/cpu')
-rw-r--r-- | arch/sandbox/cpu/spl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c index 4cee293..2c45354 100644 --- a/arch/sandbox/cpu/spl.c +++ b/arch/sandbox/cpu/spl.c @@ -38,7 +38,7 @@ void spl_board_announce_boot_device(void) printf("%s\n", fname); } -int spl_board_load_image(struct spl_boot_device *bootdev) +static int spl_board_load_image(struct spl_boot_device *bootdev) { char fname[256]; int ret; @@ -50,6 +50,7 @@ int spl_board_load_image(struct spl_boot_device *bootdev) /* Hopefully this will not return */ return os_spl_to_uboot(fname); } +SPL_LOAD_IMAGE_METHOD(0, BOOT_DEVICE_BOARD, spl_board_load_image); void spl_board_init(void) { |