diff options
Diffstat (limited to 'arch/x86/lib/e820.c')
-rw-r--r-- | arch/x86/lib/e820.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/e820.c b/arch/x86/lib/e820.c index 8b34f677d96..d6ae2c4e9d7 100644 --- a/arch/x86/lib/e820.c +++ b/arch/x86/lib/e820.c @@ -36,7 +36,7 @@ __weak unsigned int install_e820_map(unsigned int max_entries, return 4; } -#if defined(CONFIG_EFI_LOADER) && !defined(CONFIG_SPL_BUILD) +#if CONFIG_IS_ENABLED(EFI_LOADER) void efi_add_known_memory(void) { struct e820_entry e820[E820MAX]; @@ -72,4 +72,4 @@ void efi_add_known_memory(void) efi_add_memory_map(start, pages, type, false); } } -#endif /* defined(EFI_LOADER) && !defined(CONFIG_SPL_BUILD) */ +#endif /* CONFIG_IS_ENABLED(EFI_LOADER) */ |