diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-24 18:20:09 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-06 15:07:34 -0400 |
commit | 139db7af4eff4eabdcc104c5c5687ab9fe64ca9a (patch) | |
tree | e3401e6b2908aac0571b9c2f2408cbfbdd8c51a6 /common/spl/spl.c | |
parent | 0a9b73a13e3440994d4b245ffdc86c51361a296d (diff) |
spl: Convert spl_spi_load_image() to use linker list
Add a linker list declaration for this method and remove the explicit
switch() code. Also set up the sunxi function.
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 | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 9890a889ab..ac19e5ffcd 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -384,10 +384,6 @@ static int spl_load_image(u32 boot_device) return loader->load_image(&bootdev); switch (boot_device) { -#if defined(CONFIG_SPL_SPI_SUPPORT) || defined(CONFIG_SPL_SPI_FLASH_SUPPORT) - case BOOT_DEVICE_SPI: - return spl_spi_load_image(&bootdev); -#endif #ifdef CONFIG_SPL_ETH_SUPPORT case BOOT_DEVICE_CPGMAC: #ifdef CONFIG_SPL_ETH_DEVICE |