]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/kernel/setup.c
x86, efi: remove duplicate code in setup_arch() by using, efi_is_native()
[karo-tx-linux.git] / arch / x86 / kernel / setup.c
index 8b24289cc10c0f2239623918e587810b81c43c9b..1abb7969173a9949cd02c2b846d68fb8b4da9e37 100644 (file)
@@ -1135,8 +1135,7 @@ void __init setup_arch(char **cmdline_p)
         * mismatched firmware/kernel archtectures since there is no
         * support for runtime services.
         */
-       if (efi_enabled(EFI_BOOT) &&
-           IS_ENABLED(CONFIG_X86_64) != efi_enabled(EFI_64BIT)) {
+       if (efi_enabled(EFI_BOOT) && !efi_is_native()) {
                pr_info("efi: Setup done, disabling due to 32/64-bit mismatch\n");
                efi_unmap_memmap();
        }