diff options
-rw-r--r-- | drivers/acpi/internal.h | 1 | ||||
-rw-r--r-- | drivers/acpi/power.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index 2cc01489dccf..433a8ee8ac2c 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -42,6 +42,7 @@ int acpi_power_init(void); | |||
42 | int acpi_device_sleep_wake(struct acpi_device *dev, | 42 | int acpi_device_sleep_wake(struct acpi_device *dev, |
43 | int enable, int sleep_state, int dev_state); | 43 | int enable, int sleep_state, int dev_state); |
44 | int acpi_power_get_inferred_state(struct acpi_device *device, int *state); | 44 | int acpi_power_get_inferred_state(struct acpi_device *device, int *state); |
45 | int acpi_power_on_resources(struct acpi_device *device, int state); | ||
45 | int acpi_power_transition(struct acpi_device *device, int state); | 46 | int acpi_power_transition(struct acpi_device *device, int state); |
46 | extern int acpi_power_nocheck; | 47 | extern int acpi_power_nocheck; |
47 | 48 | ||
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index 95fedbdf4fb8..0cb4eab50d73 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -485,6 +485,14 @@ int acpi_power_get_inferred_state(struct acpi_device *device, int *state) | |||
485 | return 0; | 485 | return 0; |
486 | } | 486 | } |
487 | 487 | ||
488 | int acpi_power_on_resources(struct acpi_device *device, int state) | ||
489 | { | ||
490 | if (!device || state < ACPI_STATE_D0 || state > ACPI_STATE_D3) | ||
491 | return -EINVAL; | ||
492 | |||
493 | return acpi_power_on_list(&device->power.states[state].resources); | ||
494 | } | ||
495 | |||
488 | int acpi_power_transition(struct acpi_device *device, int state) | 496 | int acpi_power_transition(struct acpi_device *device, int state) |
489 | { | 497 | { |
490 | int result; | 498 | int result; |