diff options
| -rw-r--r-- | drivers/infiniband/hw/qib/qib_pcie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_pcie.c b/drivers/infiniband/hw/qib/qib_pcie.c index 3f14009fb662..45e55ff33dbf 100644 --- a/drivers/infiniband/hw/qib/qib_pcie.c +++ b/drivers/infiniband/hw/qib/qib_pcie.c | |||
| @@ -590,7 +590,7 @@ static int qib_tune_pcie_caps(struct qib_devdata *dd) | |||
| 590 | 590 | ||
| 591 | /* Find out supported and configured values for parent (root) */ | 591 | /* Find out supported and configured values for parent (root) */ |
| 592 | parent = dd->pcidev->bus->self; | 592 | parent = dd->pcidev->bus->self; |
| 593 | if (parent->bus->parent) { | 593 | if (!pci_is_root_bus(parent->bus)) { |
| 594 | qib_devinfo(dd->pcidev, "Parent not root\n"); | 594 | qib_devinfo(dd->pcidev, "Parent not root\n"); |
| 595 | goto bail; | 595 | goto bail; |
| 596 | } | 596 | } |
