aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 623086f9ba84..54b9f1501487 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -692,6 +692,7 @@ static void set_pcie_port_type(struct pci_dev *pdev)
692 if (!pos) 692 if (!pos)
693 return; 693 return;
694 pdev->is_pcie = 1; 694 pdev->is_pcie = 1;
695 pdev->pcie_cap = pos;
695 pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, &reg16); 696 pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, &reg16);
696 pdev->pcie_type = (reg16 & PCI_EXP_FLAGS_TYPE) >> 4; 697 pdev->pcie_type = (reg16 & PCI_EXP_FLAGS_TYPE) >> 4;
697} 698}