mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 15:12:04 +00:00
efi_loader: make efi_remove_protocol() static
A previous patch is removing the last consumer of efi_remove_protocol(). Switch that to static and treat it as an internal API in order to force users install and remove protocols with the appropriate EFI functions. It's worth noting that we still have files using efi_add_protocol(). We should convert all these to efi_install_multiple_protocol_interfaces() and treat efi_add_protocol() in a similar manner Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
4a3baf9da6
commit
21eb7c16ec
2 changed files with 3 additions and 7 deletions
|
@ -662,10 +662,6 @@ efi_status_t efi_protocol_open(struct efi_handler *handler,
|
||||||
void **protocol_interface, void *agent_handle,
|
void **protocol_interface, void *agent_handle,
|
||||||
void *controller_handle, uint32_t attributes);
|
void *controller_handle, uint32_t attributes);
|
||||||
|
|
||||||
/* Delete protocol from a handle */
|
|
||||||
efi_status_t efi_remove_protocol(const efi_handle_t handle,
|
|
||||||
const efi_guid_t *protocol,
|
|
||||||
void *protocol_interface);
|
|
||||||
/* Install multiple protocol interfaces */
|
/* Install multiple protocol interfaces */
|
||||||
efi_status_t EFIAPI
|
efi_status_t EFIAPI
|
||||||
efi_install_multiple_protocol_interfaces(efi_handle_t *handle, ...);
|
efi_install_multiple_protocol_interfaces(efi_handle_t *handle, ...);
|
||||||
|
|
|
@ -575,7 +575,7 @@ efi_status_t efi_search_protocol(const efi_handle_t handle,
|
||||||
*
|
*
|
||||||
* Return: status code
|
* Return: status code
|
||||||
*/
|
*/
|
||||||
efi_status_t efi_remove_protocol(const efi_handle_t handle,
|
static efi_status_t efi_remove_protocol(const efi_handle_t handle,
|
||||||
const efi_guid_t *protocol,
|
const efi_guid_t *protocol,
|
||||||
void *protocol_interface)
|
void *protocol_interface)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue