Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362896
b: refs/heads/master
c: ffaddbe
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Bjorn Helgaas committed Apr 15, 2013
1 parent f577b4a commit 38ffc2a
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 769ba7212f2059ca9fe0c73371e3d415c8c1c529
refs/heads/master: ffaddbe8f925a4f41eecb31e7fe69a9bdb6e2e59
5 changes: 2 additions & 3 deletions trunk/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ void pci_pme_active(struct pci_dev *dev, bool enable)
{
u16 pmcsr;

if (!dev->pm_cap)
if (!dev->pme_support)
return;

pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pmcsr);
Expand Down Expand Up @@ -1920,6 +1920,7 @@ void pci_pm_init(struct pci_dev *dev)
dev->wakeup_prepared = false;

dev->pm_cap = 0;
dev->pme_support = 0;

/* find PCI PM capability in list */
pm = pci_find_capability(dev, PCI_CAP_ID_PM);
Expand Down Expand Up @@ -1971,8 +1972,6 @@ void pci_pm_init(struct pci_dev *dev)
device_set_wakeup_capable(&dev->dev, true);
/* Disable the PME# generation functionality */
pci_pme_active(dev, false);
} else {
dev->pme_support = 0;
}
}

Expand Down

0 comments on commit 38ffc2a

Please sign in to comment.