summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pci/pci.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index d7343d2..0e8647f 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -616,12 +616,9 @@ pci_read_extcap(device_t pcib, pcicfgregs *cfg)
case PCIY_EXPRESS: /* PCI-express */
/*
* Assume we have a PCI-express chipset if we have
- * at least one PCI-express root port.
+ * at least one PCI-express device.
*/
- val = REG(ptr + PCIR_EXPRESS_FLAGS, 2);
- if ((val & PCIM_EXP_FLAGS_TYPE) ==
- PCIM_EXP_TYPE_ROOT_PORT)
- pcie_chipset = 1;
+ pcie_chipset = 1;
break;
default:
break;
OpenPOWER on IntegriCloud