diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/pci/probe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 7ef0f868b3e0..c90d0f8021e7 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
| @@ -641,8 +641,7 @@ static void pci_set_bus_speed(struct pci_bus *bus) | |||
| 641 | return; | 641 | return; |
| 642 | } | 642 | } |
| 643 | 643 | ||
| 644 | pos = pci_find_capability(bridge, PCI_CAP_ID_EXP); | 644 | if (pci_is_pcie(bridge)) { |
| 645 | if (pos) { | ||
| 646 | u32 linkcap; | 645 | u32 linkcap; |
| 647 | u16 linksta; | 646 | u16 linksta; |
| 648 | 647 | ||
