diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2020-06-09 14:09:31 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-07-03 18:00:27 +0200 |
commit | f7a963c6af5a077631a4ff43fcd10533969b14b2 (patch) | |
tree | 7e051c6160dc164bd9eb98f5b3399a693211f9a7 /lib | |
parent | bcfe764ee925d0820e82c69ccf75b71d142644c7 (diff) | |
download | u-boot-f7a963c6af5a077631a4ff43fcd10533969b14b2.tar.gz u-boot-f7a963c6af5a077631a4ff43fcd10533969b14b2.tar.xz u-boot-f7a963c6af5a077631a4ff43fcd10533969b14b2.zip |
efi_loader: change efi objects initialization order
The simplest solution to revert the commit b32ac16f9a32 ("test/py: fix
test_efi_secboot/conftest.py") is to move efi_console_register()
forward before efi_disk_register().
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_setup.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c index dd0c53fc23..671f6da12b 100644 --- a/lib/efi_loader/efi_setup.c +++ b/lib/efi_loader/efi_setup.c @@ -140,6 +140,10 @@ efi_status_t efi_init_obj_list(void) if (ret != EFI_SUCCESS) goto out; + ret = efi_console_register(); + if (ret != EFI_SUCCESS) + goto out; + #ifdef CONFIG_PARTITIONS ret = efi_disk_register(); if (ret != EFI_SUCCESS) @@ -185,9 +189,6 @@ efi_status_t efi_init_obj_list(void) if (ret != EFI_SUCCESS) goto out; - ret = efi_console_register(); - if (ret != EFI_SUCCESS) - goto out; #if defined(CONFIG_LCD) || defined(CONFIG_DM_VIDEO) ret = efi_gop_register(); if (ret != EFI_SUCCESS) |