From 19755f3428dc4a676d9b60cf66c71c615a4852ba Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Mon, 22 Aug 2011 16:58:54 +0100 Subject: protocol.h: Remove unused locate_protocol() locate_protocol() has never been used by efilinux and results in the following build error when compiled with gnu-efi <= 3.0i, In file included from entry.c:38:0: protocol.h: In function 'locate_protocol': protocol.h:62:31: error: 'EFI_BOOT_SERVICES' has no member named 'LocateProtocol' Reported-by: KESHAV P.R. Reported-by: Metatech Signed-off-by: Matt Fleming --- protocol.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/protocol.h b/protocol.h index 88b4a7b..6881d70 100644 --- a/protocol.h +++ b/protocol.h @@ -50,19 +50,6 @@ handle_protocol(EFI_HANDLE handle, EFI_GUID *protocol, void **interface) handle, protocol, interface); } -/** - * locate_protocol - Returns the first protocol instance for @protocol - * @protocol: the protocol to search for - * @registration: optional registration key - * @interface: used to return a pointer to the first matching interface - */ -static inline EFI_STATUS -locate_protocol(EFI_GUID *protocol, void *registration, void **interface) -{ - return uefi_call_wrapper(boot->LocateProtocol, 3, protocol, - registration, interface); -} - /** * locate_handle - Search for handles that support @protocol * @type: the search type, which handles are returned -- cgit 1.2.3-korg