summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-05-22 23:54:12 +0000
committerjhb <jhb@FreeBSD.org>2015-05-22 23:54:12 +0000
commit9b127b4790f7947392b0f50d1ec4120c5cc00544 (patch)
treef87295e842528e49fc912b62261471f3e6851626 /sys/dev/pci
parentb92445bf9a2ef33df94a7bff88476bf99d58a84b (diff)
downloadFreeBSD-src-9b127b4790f7947392b0f50d1ec4120c5cc00544.zip
FreeBSD-src-9b127b4790f7947392b0f50d1ec4120c5cc00544.tar.gz
MFC 281872:
Fix some incorrect #if conditions around older workarounds for bus numbering goofs.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index b1f6d58..b2c18d6 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -946,7 +946,7 @@ pcib_attach_common(device_t dev)
* Quirk handling.
*/
switch (pci_get_devid(dev)) {
-#if !defined(NEW_PCIB) && !defined(PCI_RES_BUS)
+#if !(defined(NEW_PCIB) && defined(PCI_RES_BUS))
case 0x12258086: /* Intel 82454KX/GX (Orion) */
{
uint8_t supbus;
@@ -972,7 +972,7 @@ pcib_attach_common(device_t dev)
sc->flags |= PCIB_SUBTRACTIVE;
break;
-#if !defined(NEW_PCIB) && !defined(PCI_RES_BUS)
+#if !(defined(NEW_PCIB) && defined(PCI_RES_BUS))
/* Compaq R3000 BIOS sets wrong subordinate bus number. */
case 0x00dd10de:
{
OpenPOWER on IntegriCloud