diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-07 14:25:49 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:26 +0200 |
commit | c1c37a1c5819ecd1d8fc0495ea0d5561dc5ced0d (patch) | |
tree | a8d77d5a86d82243b32b288a72186a5f5a25fe05 /cpukit/libpci/pci_find.c | |
parent | DRVMGR: PCI BUS converted to BSD header (diff) | |
download | rtems-c1c37a1c5819ecd1d8fc0495ea0d5561dc5ced0d.tar.bz2 |
LIBPCI: converted to BSD header
Diffstat (limited to 'cpukit/libpci/pci_find.c')
-rw-r--r-- | cpukit/libpci/pci_find.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libpci/pci_find.c b/cpukit/libpci/pci_find.c index a2575b7fed..42575a6a41 100644 --- a/cpukit/libpci/pci_find.c +++ b/cpukit/libpci/pci_find.c @@ -21,8 +21,8 @@ static int compare_dev_id(pci_dev_t pcidev, void *arg) struct compare_info *info = arg; uint16_t vid, did; - pci_cfg_r16(pcidev, PCI_VENDOR_ID, &vid); - pci_cfg_r16(pcidev, PCI_DEVICE_ID, &did); + pci_cfg_r16(pcidev, PCIR_VENDOR, &vid); + pci_cfg_r16(pcidev, PCIR_DEVICE, &did); if ((vid != info->vendor) || (did != info->device)) return 0; if (info->index-- == 0) |