diff options
| -rw-r--r-- | drivers/acpi/device_pm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index 26d3fd718a04..afc808e93855 100644 --- a/drivers/acpi/device_pm.c +++ b/drivers/acpi/device_pm.c | |||
| @@ -424,7 +424,7 @@ static int acpi_dev_pm_get_state(struct device *dev, struct acpi_device *adev, | |||
| 424 | unsigned long long d_min, d_max; | 424 | unsigned long long d_min, d_max; |
| 425 | bool wakeup = false; | 425 | bool wakeup = false; |
| 426 | 426 | ||
| 427 | if (d_max_in < ACPI_STATE_D0 || d_max_in > ACPI_STATE_D3) | 427 | if (d_max_in < ACPI_STATE_D0 || d_max_in > ACPI_STATE_D3_COLD) |
| 428 | return -EINVAL; | 428 | return -EINVAL; |
| 429 | 429 | ||
| 430 | if (d_max_in > ACPI_STATE_D3_HOT) { | 430 | if (d_max_in > ACPI_STATE_D3_HOT) { |
| @@ -443,7 +443,7 @@ static int acpi_dev_pm_get_state(struct device *dev, struct acpi_device *adev, | |||
| 443 | * the lowest limit with the specified one. | 443 | * the lowest limit with the specified one. |
| 444 | */ | 444 | */ |
| 445 | d_min = ACPI_STATE_D0; | 445 | d_min = ACPI_STATE_D0; |
| 446 | d_max = ACPI_STATE_D3; | 446 | d_max = ACPI_STATE_D3_COLD; |
| 447 | 447 | ||
| 448 | /* | 448 | /* |
| 449 | * If present, _SxD methods return the minimum D-state (highest power | 449 | * If present, _SxD methods return the minimum D-state (highest power |
| @@ -680,8 +680,8 @@ static int acpi_dev_pm_low_power(struct device *dev, struct acpi_device *adev, | |||
| 680 | return 0; | 680 | return 0; |
| 681 | 681 | ||
| 682 | power_state = acpi_dev_pm_get_state(dev, adev, system_state, | 682 | power_state = acpi_dev_pm_get_state(dev, adev, system_state, |
| 683 | ACPI_STATE_D3, NULL); | 683 | ACPI_STATE_D3_COLD, NULL); |
| 684 | if (power_state < ACPI_STATE_D0 || power_state > ACPI_STATE_D3) | 684 | if (power_state < ACPI_STATE_D0 || power_state > ACPI_STATE_D3_COLD) |
| 685 | return -EIO; | 685 | return -EIO; |
| 686 | 686 | ||
| 687 | return acpi_device_set_power(adev, power_state); | 687 | return acpi_device_set_power(adev, power_state); |
