From: jljusten Date: Mon, 24 Nov 2008 00:37:12 +0000 (+0000) Subject: Use the Controller handle to open the protocol, rather than the X-Git-Tag: edk2-stable201903~19556 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;ds=sidebyside;h=d52be0e242223138773f6c9e185dc5d3463a2cae;p=mirror_edk2.git Use the Controller handle to open the protocol, rather than the NULL handle which was stored in Private->Handle. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6689 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c b/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c index b3a0f7d00e..2f0eb5a813 100644 --- a/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c +++ b/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c @@ -236,11 +236,11 @@ CirrusLogic5430ControllerDriverStart ( // Open PCI I/O Protocol // Status = gBS->OpenProtocol ( - Private->Handle, + Controller, &gEfiPciIoProtocolGuid, (VOID **) &Private->PciIo, This->DriverBindingHandle, - Private->Handle, + Controller, EFI_OPEN_PROTOCOL_BY_DRIVER ); if (EFI_ERROR (Status)) {