Skip to content
Snippets Groups Projects
Commit 968ebdf1 authored by Marek Vasut's avatar Marek Vasut Committed by Andreas Bießmann
Browse files

ARM: at91: Don't invoke spl_boot_device() twice


Since the spl_boot_mode() is now passed the boot device to boot from,
make use of it instead of inquiring for the boot device again. This
allows board_boot_order() to function correctly.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
Reviewed-by: default avatarAndreas Bießmann <andreas@biessmann.org>
parent 2b1cdafa
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ u32 spl_boot_device(void)
u32 spl_boot_mode(const u32 boot_device)
{
switch (spl_boot_device()) {
switch (boot_device) {
#ifdef CONFIG_SYS_USE_MMC
case BOOT_DEVICE_MMC1:
case BOOT_DEVICE_MMC2:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment