From 5bca971e545e01271c6ae5b1b66ee9f281123bf2 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Sun, 30 Sep 2007 03:05:10 +0000 Subject: Update to support to produce Component Name and & Component Name 2 protocol based on Feature flag PcdComponentNameDisable & PcdComponentName2Disable. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4005 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c') diff --git a/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c b/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c index e4f7e18e99..d5120eb5b2 100644 --- a/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c +++ b/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c @@ -60,25 +60,23 @@ InitializeConPlatform( // // Install driver model protocol(s). // - Status = EfiLibInstallAllDriverProtocols ( + Status = EfiLibInstallDriverBindingComponentName2 ( ImageHandle, SystemTable, &gConPlatformTextInDriverBinding, ImageHandle, &gConPlatformComponentName, - NULL, - NULL + &gConPlatformComponentName2 ); ASSERT_EFI_ERROR (Status); - Status = EfiLibInstallAllDriverProtocols ( + Status = EfiLibInstallDriverBindingComponentName2 ( ImageHandle, SystemTable, &gConPlatformTextOutDriverBinding, NULL, &gConPlatformComponentName, - NULL, - NULL + &gConPlatformComponentName2 ); ASSERT_EFI_ERROR (Status); -- cgit v1.2.3