aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp
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/pnp
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/pnp')
-rw-r--r--drivers/pnp/pnpacpi/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c
index 6a2a3c2f4d5e..616fc72190bf 100644
--- a/drivers/pnp/pnpacpi/core.c
+++ b/drivers/pnp/pnpacpi/core.c
@@ -127,6 +127,7 @@ static int pnpacpi_disable_resources(struct pnp_dev *dev)
127 return ACPI_FAILURE(status) ? -ENODEV : 0; 127 return ACPI_FAILURE(status) ? -ENODEV : 0;
128} 128}
129 129
130#ifdef CONFIG_ACPI_SLEEP
130static int pnpacpi_suspend(struct pnp_dev *dev, pm_message_t state) 131static int pnpacpi_suspend(struct pnp_dev *dev, pm_message_t state)
131{ 132{
132 return acpi_bus_set_power((acpi_handle) dev->data, 133 return acpi_bus_set_power((acpi_handle) dev->data,
@@ -140,14 +141,17 @@ static int pnpacpi_resume(struct pnp_dev *dev)
140{ 141{
141 return acpi_bus_set_power((acpi_handle) dev->data, ACPI_STATE_D0); 142 return acpi_bus_set_power((acpi_handle) dev->data, ACPI_STATE_D0);
142} 143}
144#endif
143 145
144static struct pnp_protocol pnpacpi_protocol = { 146static struct pnp_protocol pnpacpi_protocol = {
145 .name = "Plug and Play ACPI", 147 .name = "Plug and Play ACPI",
146 .get = pnpacpi_get_resources, 148 .get = pnpacpi_get_resources,
147 .set = pnpacpi_set_resources, 149 .set = pnpacpi_set_resources,
148 .disable = pnpacpi_disable_resources, 150 .disable = pnpacpi_disable_resources,
151#ifdef CONFIG_ACPI_SLEEP
149 .suspend = pnpacpi_suspend, 152 .suspend = pnpacpi_suspend,
150 .resume = pnpacpi_resume, 153 .resume = pnpacpi_resume,
154#endif
151}; 155};
152 156
153static int __init pnpacpi_add_device(struct acpi_device *device) 157static int __init pnpacpi_add_device(struct acpi_device *device)