diff options
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; } |