summaryrefslogtreecommitdiff
path: root/common/spl/spl.c
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2016-09-24 18:20:04 -0600
committerTom Rini <[email protected]>2016-10-06 15:06:59 -0400
commit548b3ee73ca6fc042b85e0b171be36d942eeffb5 (patch)
treed250680a56531e96381c02bc0c41cd8a5f1d61cb /common/spl/spl.c
parentafa6e6c48845bac39a73b41012e8d7a53b13598d (diff)
spl: Convert spl_nor_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 <[email protected]> Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'common/spl/spl.c')
-rw-r--r--common/spl/spl.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index cef5ff9580c..978df648706 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_NOR_SUPPORT
- case BOOT_DEVICE_NOR:
- return spl_nor_load_image(&bootdev);
-#endif
#ifdef CONFIG_SPL_YMODEM_SUPPORT
case BOOT_DEVICE_UART:
return spl_ymodem_load_image(&bootdev);