ACPI / PM: Fix build warning in sleep.c for CONFIG_ACPI_SLEEP unset

If CONFIG_ACPI_SLEEP is unset, the compiler complains that
pwr_btn_event_pending is defined but not used.  To silence the
warning, move the definition of pwr_btn_event_pending under an
appropriate #ifdef.

Reported-by: Paul E. McKenney <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Tested-by: Paul E. McKenney <[email protected]>
Signed-off-by: Len Brown <[email protected]>
1 file changed