From 95cff6a4d87a83093d3c685d7743f3c13a44a177 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 19 May 2014 20:23:31 +0100 Subject: [efi] Allow for optional protocols Signed-off-by: Michael Brown --- src/interface/efi/efi_init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/interface') diff --git a/src/interface/efi/efi_init.c b/src/interface/efi/efi_init.c index b4ed5c147..e6ef3d054 100644 --- a/src/interface/efi/efi_init.c +++ b/src/interface/efi/efi_init.c @@ -187,8 +187,9 @@ EFI_STATUS efi_init ( EFI_HANDLE image_handle, } else { DBGC ( systab, "EFI does not provide protocol %s\n", efi_guid_ntoa ( &prot->guid ) ); - /* All protocols are required */ - return efirc; + /* Fail if protocol is required */ + if ( prot->required ) + return efirc; } } -- cgit v1.2.3-55-g7522