X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FEhciDxe%2FEhci.c;h=13ce7fdfb1f9f9f58b4e57f107e46d12a8103642;hp=2e3edfd8311cd5c058bcd1f4311a877a362eb5fc;hb=f527bce3d07ff80c7fff9684b2c7cdc02805c32e;hpb=c52fa98ca98ceaab75e8ddf9ebcfbcbd323bab13 diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c index 2e3edfd831..13ce7fdfb1 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c @@ -1271,8 +1271,6 @@ EhcAsyncIsochronousTransfer ( return EFI_UNSUPPORTED; } -//@MT: EFI_DRIVER_ENTRY_POINT (EhcDriverEntryPoint) - EFI_STATUS EFIAPI EhcDriverEntryPoint ( @@ -1297,14 +1295,13 @@ Returns: --*/ { - return EfiLibInstallAllDriverProtocols ( + return EfiLibInstallDriverBindingComponentName2 ( ImageHandle, SystemTable, &gEhciDriverBinding, ImageHandle, &gEhciComponentName, - NULL, - NULL + &gEhciComponentName2 ); } @@ -1567,12 +1564,21 @@ EhcDriverBindingStart ( // Install the component name protocol, don't fail the start // because of something for display. // - AddUnicodeString ( + AddUnicodeString2 ( "eng", gEhciComponentName.SupportedLanguages, &Ehc->ControllerNameTable, - L"Enhanced Host Controller (USB 2.0)" + L"Enhanced Host Controller (USB 2.0)", + TRUE ); + AddUnicodeString2 ( + "en", + gEhciComponentName2.SupportedLanguages, + &Ehc->ControllerNameTable, + L"Enhanced Host Controller (USB 2.0)", + FALSE + ); + EHC_DEBUG (("EhcDriverBindingStart: EHCI started for controller @ %x\n", Controller)); return EFI_SUCCESS;