diff options
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/pciexp_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c index 36143402ab..c03c224003 100644 --- a/src/device/pciexp_device.c +++ b/src/device/pciexp_device.c @@ -183,7 +183,7 @@ static void pciexp_enable_ltr(struct device *dev) unsigned int parent_cap = 0; if (!dev->ops->ops_pci || !dev->ops->ops_pci->get_ltr_max_latencies) { parent = dev->bus->dev; - parent_cap = pci_find_capability(dev, PCI_CAP_ID_PCIE); + parent_cap = pci_find_capability(parent, PCI_CAP_ID_PCIE); if (!parent_cap) return; } |