mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
spl: Convert spl_mmc_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>
This commit is contained in:
parent
98136b2f26
commit
0fed9c7ed6
3 changed files with 5 additions and 10 deletions
|
@ -384,12 +384,6 @@ static int spl_load_image(u32 boot_device)
|
|||
return loader->load_image(&bootdev);
|
||||
|
||||
switch (boot_device) {
|
||||
#ifdef CONFIG_SPL_MMC_SUPPORT
|
||||
case BOOT_DEVICE_MMC1:
|
||||
case BOOT_DEVICE_MMC2:
|
||||
case BOOT_DEVICE_MMC2_2:
|
||||
return spl_mmc_load_image(&bootdev);
|
||||
#endif
|
||||
#ifdef CONFIG_SPL_UBI
|
||||
case BOOT_DEVICE_NAND:
|
||||
case BOOT_DEVICE_ONENAND:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue