diff options
author | Len Brown <len.brown@intel.com> | 2007-07-28 03:33:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-29 19:53:59 -0400 |
commit | 673d5b43daa00b42759cecc6b0760b8bf6be80d2 (patch) | |
tree | a795ee922db699a8b4cb893ef5809399f1591ba6 /drivers/pnp | |
parent | 296699de6bdc717189a331ab6bbe90e05c94db06 (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.c | 4 |
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 | ||
130 | static int pnpacpi_suspend(struct pnp_dev *dev, pm_message_t state) | 131 | static 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 | ||
144 | static struct pnp_protocol pnpacpi_protocol = { | 146 | static 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 | ||
153 | static int __init pnpacpi_add_device(struct acpi_device *device) | 157 | static int __init pnpacpi_add_device(struct acpi_device *device) |