aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci-acpi.c')
-rw-r--r--drivers/pci/pci-acpi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
index 5f96b869a566..056ea80ee27a 100644
--- a/drivers/pci/pci-acpi.c
+++ b/drivers/pci/pci-acpi.c
@@ -239,13 +239,11 @@ EXPORT_SYMBOL(pci_osc_control_set);
239 * choose highest power _SxD or any lower power 239 * choose highest power _SxD or any lower power
240 */ 240 */
241 241
242static pci_power_t acpi_pci_choose_state(struct pci_dev *pdev, 242static pci_power_t acpi_pci_choose_state(struct pci_dev *pdev)
243 pm_message_t state)
244{ 243{
245 int acpi_state; 244 int acpi_state;
246 245
247 acpi_state = acpi_pm_device_sleep_state(&pdev->dev, 246 acpi_state = acpi_pm_device_sleep_state(&pdev->dev, NULL);
248 device_may_wakeup(&pdev->dev), NULL);
249 if (acpi_state < 0) 247 if (acpi_state < 0)
250 return PCI_POWER_ERROR; 248 return PCI_POWER_ERROR;
251 249