diff options
author | Aaron Lu <aaron.lu@intel.com> | 2013-07-31 08:07:15 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-07-31 08:07:15 -0400 |
commit | 7b4e0c4ac1809eab6fcfe6818ec8b70be79b41bc (patch) | |
tree | 98246d9961d3f9bb045b25a6b86ddf97a9417a2c /drivers/acpi/device_pm.c | |
parent | 8ad928d52e63a9b7d69f0873d7318c4561e2f8cd (diff) |
ACPI / PM: Remove redundant power manageable check from acpi_bus_set_power()
Now that acpi_device_set_power() checks whether or not the given
device is power manageable, it is not necessary to do this check in
acpi_bus_set_power() any more, so remove it.
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/device_pm.c')
-rw-r--r-- | drivers/acpi/device_pm.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index 8234e1f8c79d..beb9625e8458 100644 --- a/drivers/acpi/device_pm.c +++ b/drivers/acpi/device_pm.c | |||
@@ -243,13 +243,6 @@ int acpi_bus_set_power(acpi_handle handle, int state) | |||
243 | if (result) | 243 | if (result) |
244 | return result; | 244 | return result; |
245 | 245 | ||
246 | if (!device->flags.power_manageable) { | ||
247 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | ||
248 | "Device [%s] is not power manageable\n", | ||
249 | dev_name(&device->dev))); | ||
250 | return -ENODEV; | ||
251 | } | ||
252 | |||
253 | return acpi_device_set_power(device, state); | 246 | return acpi_device_set_power(device, state); |
254 | } | 247 | } |
255 | EXPORT_SYMBOL(acpi_bus_set_power); | 248 | EXPORT_SYMBOL(acpi_bus_set_power); |