Skip to content

Commit

Permalink
ACPI / PM: Remove redundant power manageable check from acpi_bus_set_…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
aaronlu authored and rafaeljw committed Jul 31, 2013
1 parent 8ad928d commit 7b4e0c4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/acpi/device_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,6 @@ int acpi_bus_set_power(acpi_handle handle, int state)
if (result)
return result;

if (!device->flags.power_manageable) {
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
"Device [%s] is not power manageable\n",
dev_name(&device->dev)));
return -ENODEV;
}

return acpi_device_set_power(device, state);
}
EXPORT_SYMBOL(acpi_bus_set_power);
Expand Down

0 comments on commit 7b4e0c4

Please sign in to comment.