aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/power.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2008-11-11 21:14:15 -0500
committerLen Brown <len.brown@intel.com>2008-11-11 21:14:15 -0500
commitf613984902b64cfb05599f9ba52c0af39cb4db6b (patch)
treed4ee7e29857dfbfc44fdf758420d906485698213 /drivers/acpi/power.c
parent3e0fe364835cecc8560cf32bb9609f4c56c5d9fa (diff)
parent676962dac6e267ce7c13f73962208f9124a084bb (diff)
Merge branch 'power' into release
Diffstat (limited to 'drivers/acpi/power.c')
-rw-r--r--drivers/acpi/power.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c
index 81f583f8098b..bb7d50dd2818 100644
--- a/drivers/acpi/power.c
+++ b/drivers/acpi/power.c
@@ -152,7 +152,8 @@ static int acpi_power_get_state(acpi_handle handle, int *state)
152 ACPI_POWER_RESOURCE_STATE_OFF; 152 ACPI_POWER_RESOURCE_STATE_OFF;
153 153
154 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] is %s\n", 154 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] is %s\n",
155 acpi_ut_get_node_name(handle), state ? "on" : "off")); 155 acpi_ut_get_node_name(handle),
156 *state ? "on" : "off"));
156 157
157 return 0; 158 return 0;
158} 159}
@@ -515,11 +516,6 @@ int acpi_power_transition(struct acpi_device *device, int state)
515 cl = &device->power.states[device->power.state].resources; 516 cl = &device->power.states[device->power.state].resources;
516 tl = &device->power.states[state].resources; 517 tl = &device->power.states[state].resources;
517 518
518 if (!cl->count && !tl->count) {
519 result = -ENODEV;
520 goto end;
521 }
522
523 /* TBD: Resources must be ordered. */ 519 /* TBD: Resources must be ordered. */
524 520
525 /* 521 /*