summaryrefslogtreecommitdiff
path: root/OptionRomPkg/CirrusLogic5430Dxe
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-02 01:52:32 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-02 01:52:32 +0000
commitc4536608041b6e49ba7c44905070592b08db6b54 (patch)
tree13cc5e3d69664289fcf963dc656fcf49c997f10a /OptionRomPkg/CirrusLogic5430Dxe
parentac9868ecb859e877a665d1cead72d49dba0db674 (diff)
downloadedk2-platforms-c4536608041b6e49ba7c44905070592b08db6b54.tar.xz
Fix Build failure
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8712 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OptionRomPkg/CirrusLogic5430Dxe')
-rw-r--r--OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c b/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c
index 8b01f8c435..21bb4afee0 100644
--- a/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c
+++ b/OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430.c
@@ -771,19 +771,19 @@ InitializeGraphicsMode (
UINT8 Byte;
UINTN Index;
UINT16 DeviceId;
-
+ EFI_STATUS Status;
+
+ Status = Private->PciIo->Pci.Read (
+ Private->PciIo,
+ EfiPciIoWidthUint16,
+ PCI_DEVICE_ID_OFFSET,
+ 1,
+ &DeviceId
+ );
//
// Read the PCI Configuration Header from the PCI Device
//
- ASSERT_EFI_ERROR (
- Private->PciIo->Pci.Read (
- Private->PciIo,
- EfiPciIoWidthUint16,
- PCI_DEVICE_ID_OFFSET,
- 1,
- &DeviceId
- )
- );
+ ASSERT_EFI_ERROR (Status);
outw (Private, SEQ_ADDRESS_REGISTER, 0x1206);
outw (Private, SEQ_ADDRESS_REGISTER, 0x0012);