diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-24 18:20:06 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-06 15:07:29 -0400 |
commit | 56df46351ad56551f8ea7e54d217ea6b709e686c (patch) | |
tree | c09a75c375816ec291bdbf6bf8ae8387cc56d8d0 /common/spl/spl.c | |
parent | dd6bf9025c2fd8ef0860e6e3ff4c12bc202fc64a (diff) |
spl: Convert spl_usb_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit
switch() code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/spl/spl.c')
-rw-r--r-- | common/spl/spl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 84ae0034db..d2e23bf2d8 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -400,9 +400,6 @@ static int spl_load_image(u32 boot_device) bootdev.boot_device_name = "usb_ether"; return spl_net_load_image(&bootdev); #endif -#ifdef CONFIG_SPL_USB_SUPPORT - case BOOT_DEVICE_USB: - return spl_usb_load_image(&bootdev); #endif #ifdef CONFIG_SPL_SATA_SUPPORT case BOOT_DEVICE_SATA: |