aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 8f4a5ea543fc..b9e93cf1eb40 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -2108,7 +2108,7 @@ int pci_enable_obff(struct pci_dev *dev, enum pci_obff_signal_type type)
2108 return -ENOTSUPP; /* no OBFF support at all */ 2108 return -ENOTSUPP; /* no OBFF support at all */
2109 2109
2110 /* Make sure the topology supports OBFF as well */ 2110 /* Make sure the topology supports OBFF as well */
2111 if (dev->bus) { 2111 if (dev->bus->self) {
2112 ret = pci_enable_obff(dev->bus->self, type); 2112 ret = pci_enable_obff(dev->bus->self, type);
2113 if (ret) 2113 if (ret)
2114 return ret; 2114 return ret;
@@ -2215,7 +2215,7 @@ int pci_enable_ltr(struct pci_dev *dev)
2215 return -EINVAL; 2215 return -EINVAL;
2216 2216
2217 /* Enable upstream ports first */ 2217 /* Enable upstream ports first */
2218 if (dev->bus) { 2218 if (dev->bus->self) {
2219 ret = pci_enable_ltr(dev->bus->self); 2219 ret = pci_enable_ltr(dev->bus->self);
2220 if (ret) 2220 if (ret)
2221 return ret; 2221 return ret;