[coreboot] r3394 - trunk/util/flashrom
svn at coreboot.org
svn at coreboot.org
Sun Jun 29 01:02:22 CEST 2008
Author: hailfinger
Date: 2008-06-29 01:02:22 +0200 (Sun, 29 Jun 2008)
New Revision: 3394
Modified:
trunk/util/flashrom/flashrom.c
Log:
Use symbolic constants for PCI subsystem probing in flashrom.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Stefan Reinauer <stepan at coresystems.de>
Modified: trunk/util/flashrom/flashrom.c
===================================================================
--- trunk/util/flashrom/flashrom.c 2008-06-27 16:28:34 UTC (rev 3393)
+++ trunk/util/flashrom/flashrom.c 2008-06-28 23:02:22 UTC (rev 3394)
@@ -74,8 +74,8 @@
for (temp = pacc->devices; temp; temp = temp->next)
if (pci_filter_match(&filter, temp)) {
- if ((card_vendor == pci_read_word(temp, 0x2C)) &&
- (card_device == pci_read_word(temp, 0x2E)))
+ if ((card_vendor == pci_read_word(temp, PCI_SUBSYSTEM_VENDOR_ID)) &&
+ (card_device == pci_read_word(temp, PCI_SUBSYSTEM_ID)))
return temp;
}
More information about the coreboot
mailing list