efi_loader: typedef struct efi_object *efi_handle_t
[oweals/u-boot.git] / lib / efi / efi.c
index c6639f96cc480fd1b5fe12e2a4dbc518021c4318..2c6a50824fd2be0db2da69a56b0358139eea92b2 100644 (file)
@@ -69,7 +69,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");