diff options
author | Michael Brown | 2023-01-23 20:15:45 +0100 |
---|---|---|
committer | Michael Brown | 2023-01-23 20:27:13 +0100 |
commit | 2fef0c541e4e2417fc285c4d9ddfcb6f23f394ad (patch) | |
tree | a81c522bfe50ab496e0aa078a95f6cb4e2cbd0ba /src/drivers/net/efi/snponly.c | |
parent | [efi] Add efi_path_prev() utility function (diff) | |
download | ipxe-2fef0c541e4e2417fc285c4d9ddfcb6f23f394ad.tar.gz ipxe-2fef0c541e4e2417fc285c4d9ddfcb6f23f394ad.tar.xz ipxe-2fef0c541e4e2417fc285c4d9ddfcb6f23f394ad.zip |
[efi] Extend efi_locate_device() to allow searching up the device path
Extend the functionality of efi_locate_device() to allow callers to
find instances of the protocol that may exist further up the device
path.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/efi/snponly.c')
-rw-r--r-- | src/drivers/net/efi/snponly.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/efi/snponly.c b/src/drivers/net/efi/snponly.c index cb7ea1bb..674e0a05 100644 --- a/src/drivers/net/efi/snponly.c +++ b/src/drivers/net/efi/snponly.c @@ -80,7 +80,7 @@ static int chained_locate ( struct chained_protocol *chained ) { /* Locate handle supporting this protocol */ if ( ( rc = efi_locate_device ( device, chained->protocol, - &parent ) ) != 0 ) { + &parent, 0 ) ) != 0 ) { DBGC ( device, "CHAINED %s does not support %s: %s\n", efi_handle_name ( device ), efi_guid_ntoa ( chained->protocol ), strerror ( rc ) ); |