]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/platform/efi/efi.c
x86, efi: remove duplicate code in setup_arch() by using, efi_is_native()
[karo-tx-linux.git] / arch / x86 / platform / efi / efi.c
index 5426e482db6e28bf00945f74f0a9ec4604fd6881..e075e474245b64e1ddceadb32c3304db67c226f4 100644 (file)
@@ -69,11 +69,6 @@ struct efi_memory_map memmap;
 static struct efi efi_phys __initdata;
 static efi_system_table_t efi_systab __initdata;
 
-static inline bool efi_is_native(void)
-{
-       return IS_ENABLED(CONFIG_X86_64) == efi_enabled(EFI_64BIT);
-}
-
 unsigned long x86_efi_facility;
 
 /*
@@ -949,7 +944,7 @@ void __init efi_enter_virtual_mode(void)
         *
         * Call EFI services through wrapper functions.
         */
-       efi.runtime_version = efi_systab.fw_revision;
+       efi.runtime_version = efi_systab.hdr.revision;
        efi.get_time = virt_efi_get_time;
        efi.set_time = virt_efi_set_time;
        efi.get_wakeup_time = virt_efi_get_wakeup_time;