Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check for power state only when ACPI is available
In bbswitch_off() we use acpi_bus_get_device() to determine the power state, but this feature is only available if ACPI is enabled in the kernel, so make sure to do this check only when ACPI is available. Fixes: 5593d95 ("Linux 3.8 compatibility hack") Signed-off-by: Dimitri John Ledkov <[email protected]> Signed-off-by: Andrea Righi <[email protected]>
- Loading branch information