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 | a0a791963b963b96b8017f52c8956878ea0e3f16 (patch) | |
tree | 70aef5f7c0944ff4b61dfee827f8c65a5082ab1f /flashrom.c | |
parent | a9424d597de410b07e34c47d7c0613f0595d5d9a (diff) | |
download | flashrom-a0a791963b963b96b8017f52c8956878ea0e3f16.tar.gz flashrom-a0a791963b963b96b8017f52c8956878ea0e3f16.tar.bz2 flashrom-a0a791963b963b96b8017f52c8956878ea0e3f16.zip |
Use symbolic constants for PCI subsystem probing
Corresponding to flashrom svn r279 and coreboot v2 svn r3394.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/flashrom.c b/flashrom.c index 39ed19bc7..63aba1e75 100644 --- a/flashrom.c +++ b/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; } |