diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-30 02:47:05 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-30 02:47:05 +0000 |
commit | 62b9bb55c9a37e00b3bd9ea1713512bcc4d37131 (patch) | |
tree | eafc0935ec28240b5c401a849d8d72d97f22829b /MdeModulePkg/Bus/Usb/UsbKbDxe/efikey.c | |
parent | 70da5bc2cfec8401be7c5cff435cba6119d471e4 (diff) | |
download | edk2-platforms-62b9bb55c9a37e00b3bd9ea1713512bcc4d37131.tar.xz |
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@4002 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbKbDxe/efikey.c')
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbKbDxe/efikey.c | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/efikey.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/efikey.c index 55cf88c0cc..62fec041c3 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/efikey.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/efikey.c @@ -132,15 +132,14 @@ USBKeyboardDriverBindingEntryPoint ( --*/
{
- return EfiLibInstallAllDriverProtocols (
- ImageHandle,
- SystemTable,
- &gUsbKeyboardDriverBinding,
- ImageHandle,
- &gUsbKeyboardComponentName,
- NULL,
- NULL
- );
+ return EfiLibInstallDriverBindingComponentName2 (
+ ImageHandle,
+ SystemTable,
+ &gUsbKeyboardDriverBinding,
+ ImageHandle,
+ &gUsbKeyboardComponentName,
+ &gUsbKeyboardComponentName2
+ );
}
@@ -462,12 +461,21 @@ USBKeyboardDriverBindingStart ( }
UsbKeyboardDevice->ControllerNameTable = NULL;
- AddUnicodeString (
+ AddUnicodeString2 (
"eng",
gUsbKeyboardComponentName.SupportedLanguages,
&UsbKeyboardDevice->ControllerNameTable,
- L"Generic Usb Keyboard"
+ L"Generic Usb Keyboard",
+ TRUE
);
+ AddUnicodeString2 (
+ "en",
+ gUsbKeyboardComponentName2.SupportedLanguages,
+ &UsbKeyboardDevice->ControllerNameTable,
+ L"Generic Usb Keyboard",
+ FALSE
+ );
+
return EFI_SUCCESS;
}
|