aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@hobbes.lan>2008-06-12 15:06:58 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-06-12 15:06:58 -0400
commit53eb2fbeb9e68e1a9a23945de8450999c46270ce (patch)
tree3c50f8690f63b53b3cffbcc226cbbe3c8c6de753 /drivers/pci
parent8344b568f5bdc7ee1bba909de3294c6348c36056 (diff)
parent0e6859d49ff194e01afc229c996e3aefca1a0539 (diff)
Merge branch 'suspend' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 into linux-next
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci-acpi.c6
-rw-r--r--drivers/pci/pci.c4
-rw-r--r--drivers/pci/pci.h3
3 files changed, 5 insertions, 8 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
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 15beaf48407f..7869f8f75c9e 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -506,7 +506,7 @@ pci_set_power_state(struct pci_dev *dev, pci_power_t state)
506 return 0; 506 return 0;
507} 507}
508 508
509pci_power_t (*platform_pci_choose_state)(struct pci_dev *dev, pm_message_t state); 509pci_power_t (*platform_pci_choose_state)(struct pci_dev *dev);
510 510
511/** 511/**
512 * pci_choose_state - Choose the power state of a PCI device 512 * pci_choose_state - Choose the power state of a PCI device
@@ -526,7 +526,7 @@ pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state)
526 return PCI_D0; 526 return PCI_D0;
527 527
528 if (platform_pci_choose_state) { 528 if (platform_pci_choose_state) {
529 ret = platform_pci_choose_state(dev, state); 529 ret = platform_pci_choose_state(dev);
530 if (ret != PCI_POWER_ERROR) 530 if (ret != PCI_POWER_ERROR)
531 return ret; 531 return ret;
532 } 532 }
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index e1d7bbf079b4..e0eff35825a6 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -6,8 +6,7 @@ extern void pci_remove_sysfs_dev_files(struct pci_dev *pdev);
6extern void pci_cleanup_rom(struct pci_dev *dev); 6extern void pci_cleanup_rom(struct pci_dev *dev);
7 7
8/* Firmware callbacks */ 8/* Firmware callbacks */
9extern pci_power_t (*platform_pci_choose_state)(struct pci_dev *dev, 9extern pci_power_t (*platform_pci_choose_state)(struct pci_dev *dev);
10 pm_message_t state);
11extern int (*platform_pci_set_power_state)(struct pci_dev *dev, 10extern int (*platform_pci_set_power_state)(struct pci_dev *dev,
12 pci_power_t state); 11 pci_power_t state);
13 12