Use the Controller handle to open the protocol, rather than the
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 24 Nov 2008 00:37:12 +0000 (00:37 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 24 Nov 2008 00:37:12 +0000 (00:37 +0000)
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

OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c

index b3a0f7d00eb8322a01a242f1eb02454a5f510dc4..2f0eb5a813918d57505e6a971548cb942039c103 100644 (file)
@@ -236,11 +236,11 @@ CirrusLogic5430ControllerDriverStart (
   // Open PCI I/O Protocol\r
   //\r
   Status = gBS->OpenProtocol (\r
-                  Private->Handle,\r
+                  Controller,\r
                   &gEfiPciIoProtocolGuid,\r
                   (VOID **) &Private->PciIo,\r
                   This->DriverBindingHandle,\r
-                  Private->Handle,\r
+                  Controller,\r
                   EFI_OPEN_PROTOCOL_BY_DRIVER\r
                   );\r
   if (EFI_ERROR (Status)) {\r