summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/SnpDxe/snp.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Universal/Network/SnpDxe/snp.c')
-rw-r--r--MdeModulePkg/Universal/Network/SnpDxe/snp.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/snp.c b/MdeModulePkg/Universal/Network/SnpDxe/snp.c
index d5055e7642..2f88c71ae8 100644
--- a/MdeModulePkg/Universal/Network/SnpDxe/snp.c
+++ b/MdeModulePkg/Universal/Network/SnpDxe/snp.c
@@ -1257,13 +1257,12 @@ InitializeSnpNiiDriver (
IN EFI_SYSTEM_TABLE *SystemTable
)
{
- return EfiLibInstallAllDriverProtocols (
- ImageHandle,
- SystemTable,
- &mSimpleNetworkDriverBinding,
- NULL,
- &gSimpleNetworkComponentName,
- NULL,
- NULL
- );
+ return EfiLibInstallDriverBindingComponentName2 (
+ ImageHandle,
+ SystemTable,
+ &mSimpleNetworkDriverBinding,
+ NULL,
+ &gSimpleNetworkComponentName,
+ &gSimpleNetworkComponentName2
+ );
}