diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/pci.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 7242b511a93f..392388468f6f 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -165,13 +165,13 @@ struct pci_slot_attribute { | |||
165 | extern void pci_enable_ari(struct pci_dev *dev); | 165 | extern void pci_enable_ari(struct pci_dev *dev); |
166 | /** | 166 | /** |
167 | * pci_ari_enabled - query ARI forwarding status | 167 | * pci_ari_enabled - query ARI forwarding status |
168 | * @dev: the PCI device | 168 | * @bus: the PCI bus |
169 | * | 169 | * |
170 | * Returns 1 if ARI forwarding is enabled, or 0 if not enabled; | 170 | * Returns 1 if ARI forwarding is enabled, or 0 if not enabled; |
171 | */ | 171 | */ |
172 | static inline int pci_ari_enabled(struct pci_dev *dev) | 172 | static inline int pci_ari_enabled(struct pci_bus *bus) |
173 | { | 173 | { |
174 | return dev->ari_enabled; | 174 | return bus->self && bus->self->ari_enabled; |
175 | } | 175 | } |
176 | 176 | ||
177 | #endif /* DRIVERS_PCI_H */ | 177 | #endif /* DRIVERS_PCI_H */ |