mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
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>
This commit is contained in:
parent
a9424d597d
commit
a0a791963b
@ -74,8 +74,8 @@ struct pci_dev *pci_card_find(uint16_t vendor, uint16_t device,
|
|||||||
|
|
||||||
for (temp = pacc->devices; temp; temp = temp->next)
|
for (temp = pacc->devices; temp; temp = temp->next)
|
||||||
if (pci_filter_match(&filter, temp)) {
|
if (pci_filter_match(&filter, temp)) {
|
||||||
if ((card_vendor == pci_read_word(temp, 0x2C)) &&
|
if ((card_vendor == pci_read_word(temp, PCI_SUBSYSTEM_VENDOR_ID)) &&
|
||||||
(card_device == pci_read_word(temp, 0x2E)))
|
(card_device == pci_read_word(temp, PCI_SUBSYSTEM_ID)))
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user