diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-06-26 17:55:52 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-06-26 17:55:52 -0400 |
commit | a0f75f9d495b3905b4c658c1d813a127f558a350 (patch) | |
tree | c91e6d70118ff2d15b129990cd82008acc286ce7 /drivers/pci | |
parent | b5969138542fa2f5e4466c147abc0917ff78cefe (diff) | |
parent | 15fd830dd310e6cf589478e5e1e7733caf68e777 (diff) |
Merge branch 'pci/misc' into next
* pci/misc:
MAINTAINERS: Add ACPI folks for ACPI-related things under drivers/pci
PCI: Add CircuitCo vendor ID and subsystem ID
PCI: Use pdev->pm_cap instead of pci_find_capability(..,PCI_CAP_ID_PM)
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci.c | 2 | ||||
-rw-r--r-- | drivers/pci/quirks.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 709791b70ca0..e37fea6e178d 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -805,7 +805,7 @@ pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state) | |||
805 | { | 805 | { |
806 | pci_power_t ret; | 806 | pci_power_t ret; |
807 | 807 | ||
808 | if (!pci_find_capability(dev, PCI_CAP_ID_PM)) | 808 | if (!dev->pm_cap) |
809 | return PCI_D0; | 809 | return PCI_D0; |
810 | 810 | ||
811 | ret = platform_pci_choose_state(dev); | 811 | ret = platform_pci_choose_state(dev); |
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index c3a04026cca8..e85d23044ae0 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c | |||
@@ -1834,7 +1834,6 @@ static void quirk_e100_interrupt(struct pci_dev *dev) | |||
1834 | u16 command, pmcsr; | 1834 | u16 command, pmcsr; |
1835 | u8 __iomem *csr; | 1835 | u8 __iomem *csr; |
1836 | u8 cmd_hi; | 1836 | u8 cmd_hi; |
1837 | int pm; | ||
1838 | 1837 | ||
1839 | switch (dev->device) { | 1838 | switch (dev->device) { |
1840 | /* PCI IDs taken from drivers/net/e100.c */ | 1839 | /* PCI IDs taken from drivers/net/e100.c */ |
@@ -1872,9 +1871,8 @@ static void quirk_e100_interrupt(struct pci_dev *dev) | |||
1872 | * Check that the device is in the D0 power state. If it's not, | 1871 | * Check that the device is in the D0 power state. If it's not, |
1873 | * there is no point to look any further. | 1872 | * there is no point to look any further. |
1874 | */ | 1873 | */ |
1875 | pm = pci_find_capability(dev, PCI_CAP_ID_PM); | 1874 | if (dev->pm_cap) { |
1876 | if (pm) { | 1875 | pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pmcsr); |
1877 | pci_read_config_word(dev, pm + PCI_PM_CTRL, &pmcsr); | ||
1878 | if ((pmcsr & PCI_PM_CTRL_STATE_MASK) != PCI_D0) | 1876 | if ((pmcsr & PCI_PM_CTRL_STATE_MASK) != PCI_D0) |
1879 | return; | 1877 | return; |
1880 | } | 1878 | } |