aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2007-07-28 03:33:16 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-29 19:53:59 -0400
commit673d5b43daa00b42759cecc6b0760b8bf6be80d2 (patch)
treea795ee922db699a8b4cb893ef5809399f1591ba6 /drivers/pci
parent296699de6bdc717189a331ab6bbe90e05c94db06 (diff)
ACPI: restore CONFIG_ACPI_SLEEP
Restore the 2.6.22 CONFIG_ACPI_SLEEP build option, but now shadowing the new CONFIG_PM_SLEEP option. Signed-off-by: Len Brown <len.brown@intel.com> [ Modified to work with the PM config setup changes. ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci-acpi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c
index 67c63d1f1582..5c6a5d043007 100644
--- a/drivers/pci/pci-acpi.c
+++ b/drivers/pci/pci-acpi.c
@@ -220,6 +220,7 @@ acpi_status pci_osc_control_set(acpi_handle handle, u32 flags)
220} 220}
221EXPORT_SYMBOL(pci_osc_control_set); 221EXPORT_SYMBOL(pci_osc_control_set);
222 222
223#ifdef CONFIG_ACPI_SLEEP
223/* 224/*
224 * _SxD returns the D-state with the highest power 225 * _SxD returns the D-state with the highest power
225 * (lowest D-state number) supported in the S-state "x". 226 * (lowest D-state number) supported in the S-state "x".
@@ -267,6 +268,7 @@ static pci_power_t acpi_pci_choose_state(struct pci_dev *pdev,
267 } 268 }
268 return PCI_POWER_ERROR; 269 return PCI_POWER_ERROR;
269} 270}
271#endif
270 272
271static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state) 273static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state)
272{ 274{
@@ -340,7 +342,9 @@ static int __init acpi_pci_init(void)
340 ret = register_acpi_bus_type(&acpi_pci_bus); 342 ret = register_acpi_bus_type(&acpi_pci_bus);
341 if (ret) 343 if (ret)
342 return 0; 344 return 0;
345#ifdef CONFIG_ACPI_SLEEP
343 platform_pci_choose_state = acpi_pci_choose_state; 346 platform_pci_choose_state = acpi_pci_choose_state;
347#endif
344 platform_pci_set_power_state = acpi_pci_set_power_state; 348 platform_pci_set_power_state = acpi_pci_set_power_state;
345 return 0; 349 return 0;
346} 350}