Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127378
b: refs/heads/master
c: 6a49d81
h: refs/heads/master
v: v3
  • Loading branch information
Yu Zhao authored and Jesse Barnes committed Jan 7, 2009
1 parent b3f4dd6 commit c26da9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 999da9fd489cd9774a89122940190376e19b21ce
refs/heads/master: 6a49d8120021897e139641062236215aac5d220e
6 changes: 3 additions & 3 deletions trunk/drivers/pci/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ struct pci_slot_attribute {
extern void pci_enable_ari(struct pci_dev *dev);
/**
* pci_ari_enabled - query ARI forwarding status
* @dev: the PCI device
* @bus: the PCI bus
*
* Returns 1 if ARI forwarding is enabled, or 0 if not enabled;
*/
static inline int pci_ari_enabled(struct pci_dev *dev)
static inline int pci_ari_enabled(struct pci_bus *bus)
{
return dev->ari_enabled;
return bus->self && bus->self->ari_enabled;
}

#endif /* DRIVERS_PCI_H */

0 comments on commit c26da9a

Please sign in to comment.