diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-07-30 08:36:20 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-07-30 08:36:20 -0400 |
commit | 8ad928d52e63a9b7d69f0873d7318c4561e2f8cd (patch) | |
tree | 35f0ed4a4d9da2953fe56949a25d66250ecd8832 /drivers/pnp | |
parent | b69137a74b7a9451b3da504d1ef9ead7cb393922 (diff) |
ACPI / PM: Use ACPI_STATE_D3_COLD instead of ACPI_STATE_D3 everywhere
There are several places in the tree where ACPI_STATE_D3 is used
instead of ACPI_STATE_D3_COLD which should be used instead for
clarity. Modify them all to use ACPI_STATE_D3_COLD as appropriate.
[The definition of ACPI_STATE_D3 itself cannot go away at this point
as it is part of ACPICA.]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Aaron Lu <aaron.lu@intel.com>
Diffstat (limited to 'drivers/pnp')
-rw-r--r-- | drivers/pnp/pnpacpi/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c index 55cd459a3908..34049b0b4c73 100644 --- a/drivers/pnp/pnpacpi/core.c +++ b/drivers/pnp/pnpacpi/core.c | |||
@@ -131,7 +131,7 @@ static int pnpacpi_disable_resources(struct pnp_dev *dev) | |||
131 | /* acpi_unregister_gsi(pnp_irq(dev, 0)); */ | 131 | /* acpi_unregister_gsi(pnp_irq(dev, 0)); */ |
132 | ret = 0; | 132 | ret = 0; |
133 | if (acpi_bus_power_manageable(handle)) | 133 | if (acpi_bus_power_manageable(handle)) |
134 | acpi_bus_set_power(handle, ACPI_STATE_D3); | 134 | acpi_bus_set_power(handle, ACPI_STATE_D3_COLD); |
135 | /* continue even if acpi_bus_set_power() fails */ | 135 | /* continue even if acpi_bus_set_power() fails */ |
136 | if (ACPI_FAILURE(acpi_evaluate_object(handle, "_DIS", NULL, NULL))) | 136 | if (ACPI_FAILURE(acpi_evaluate_object(handle, "_DIS", NULL, NULL))) |
137 | ret = -ENODEV; | 137 | ret = -ENODEV; |
@@ -174,10 +174,10 @@ static int pnpacpi_suspend(struct pnp_dev *dev, pm_message_t state) | |||
174 | 174 | ||
175 | if (acpi_bus_power_manageable(handle)) { | 175 | if (acpi_bus_power_manageable(handle)) { |
176 | int power_state = acpi_pm_device_sleep_state(&dev->dev, NULL, | 176 | int power_state = acpi_pm_device_sleep_state(&dev->dev, NULL, |
177 | ACPI_STATE_D3); | 177 | ACPI_STATE_D3_COLD); |
178 | if (power_state < 0) | 178 | if (power_state < 0) |
179 | power_state = (state.event == PM_EVENT_ON) ? | 179 | power_state = (state.event == PM_EVENT_ON) ? |
180 | ACPI_STATE_D0 : ACPI_STATE_D3; | 180 | ACPI_STATE_D0 : ACPI_STATE_D3_COLD; |
181 | 181 | ||
182 | /* | 182 | /* |
183 | * acpi_bus_set_power() often fails (keyboard port can't be | 183 | * acpi_bus_set_power() often fails (keyboard port can't be |