summaryrefslogtreecommitdiffstats
path: root/OptionRomPkg/CirrusLogic5430Dxe
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-24 00:37:12 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-24 00:37:12 +0000
commitd52be0e242223138773f6c9e185dc5d3463a2cae (patch)
tree60b5ab8fab00936e4f86ef1d108cb994d4352fb6 /OptionRomPkg/CirrusLogic5430Dxe
parent6f716497dee8dcc8eea249e3136793678cf6ad59 (diff)
downloadedk2-d52be0e242223138773f6c9e185dc5d3463a2cae.tar.gz
edk2-d52be0e242223138773f6c9e185dc5d3463a2cae.tar.bz2
edk2-d52be0e242223138773f6c9e185dc5d3463a2cae.zip
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
Diffstat (limited to 'OptionRomPkg/CirrusLogic5430Dxe')
-rw-r--r--OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c4
1 files changed, 2 insertions, 2 deletions
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)) {