X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=lib%2Fefi%2Fefi.c;h=0c16a5fdd38a983e23c06c998aa782319c29e971;hb=4648108c63d9d06cf882f8d216d5e3e13e272aea;hp=b1c7360ddcd5bc4f48a95b6f206f4f877da14ef0;hpb=d024236e5a31a2b4b82cbcc98b31b8170fc88d28;p=oweals%2Fu-boot.git diff --git a/lib/efi/efi.c b/lib/efi/efi.c index b1c7360ddc..0c16a5fdd3 100644 --- a/lib/efi/efi.c +++ b/lib/efi/efi.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2015 Google, Inc * - * SPDX-License-Identifier: GPL-2.0+ - * * EFI information obtained here: * http://wiki.phoenix.com/wiki/index.php/EFI_BOOT_SERVICES * @@ -12,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -54,7 +54,7 @@ void efi_puts(struct efi_priv *priv, const char *str) int efi_init(struct efi_priv *priv, const char *banner, efi_handle_t image, struct efi_system_table *sys_table) { - efi_guid_t loaded_image_guid = LOADED_IMAGE_PROTOCOL_GUID; + efi_guid_t loaded_image_guid = EFI_LOADED_IMAGE_PROTOCOL_GUID; struct efi_boot_services *boot = sys_table->boottime; struct efi_loaded_image *loaded_image; int ret; @@ -70,7 +70,7 @@ int efi_init(struct efi_priv *priv, const char *banner, efi_handle_t image, efi_putc(priv, ' '); ret = boot->open_protocol(priv->parent_image, &loaded_image_guid, - (void **)&loaded_image, &priv->parent_image, + (void **)&loaded_image, priv->parent_image, NULL, EFI_OPEN_PROTOCOL_GET_PROTOCOL); if (ret) { efi_puts(priv, "Failed to get loaded image protocol\n");