diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-24 18:20:03 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-06 15:06:58 -0400 |
commit | afa6e6c48845bac39a73b41012e8d7a53b13598d (patch) | |
tree | 9d65158d116c515f5b3cccc74898f97e5279a477 /common/spl/spl.c | |
parent | d5c2b11ce40f8ca849008938515e742e6b7efc18 (diff) |
spl: Convert spl_onenand_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 | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index bbf87096a7..cef5ff9580 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) { -#ifdef CONFIG_SPL_ONENAND_SUPPORT - case BOOT_DEVICE_ONENAND: - return spl_onenand_load_image(&bootdev); -#endif #ifdef CONFIG_SPL_NOR_SUPPORT case BOOT_DEVICE_NOR: return spl_nor_load_image(&bootdev); |