diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2008-06-28 23:02:22 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2008-06-28 23:02:22 +0000 |
commit | 50e4a095ddff2efd3b780d585960fa928a6d93bb (patch) | |
tree | abf3ae892d450e53d1e14fbb3791f3869a45fda7 /util | |
parent | a1dd9142c67a6651a1ea7884aa11ba41b597a1bf (diff) | |
download | coreboot-50e4a095ddff2efd3b780d585960fa928a6d93bb.tar.xz |
Use symbolic constants for PCI subsystem probing in flashrom.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3394 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r-- | util/flashrom/flashrom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c index 39ed19bc72..63aba1e75b 100644 --- a/util/flashrom/flashrom.c +++ b/util/flashrom/flashrom.c @@ -74,8 +74,8 @@ struct pci_dev *pci_card_find(uint16_t vendor, uint16_t device, 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; } |