diff options
author | Matt Fleming <matt.fleming@intel.com> | 2011-08-22 16:58:54 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2011-08-22 17:13:47 +0100 |
commit | 19755f3428dc4a676d9b60cf66c71c615a4852ba (patch) | |
tree | 6c4003a822dcd36bbe2a50d5bd14a2301e2c6668 | |
parent | b08c499ced2fed1710f53619a0a46cc07fae0275 (diff) | |
download | efilinux-19755f3428dc4a676d9b60cf66c71c615a4852ba.tar.gz |
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. <skodabenz@gmail.com>
Reported-by: Metatech <metatechbe@gmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | protocol.h | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -51,19 +51,6 @@ handle_protocol(EFI_HANDLE handle, EFI_GUID *protocol, void **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 * @protocol: the protocol to search by (only valid if @type is ByProtocol) |