Commit eab05ec3 authored by Eric Biggers's avatar Eric Biggers Committed by Rafael J. Wysocki

ACPI / EC: Fix unused function warning when CONFIG_PM_SLEEP=n

Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 97cb159f
...@@ -526,6 +526,7 @@ static void acpi_ec_enable_event(struct acpi_ec *ec) ...@@ -526,6 +526,7 @@ static void acpi_ec_enable_event(struct acpi_ec *ec)
acpi_ec_clear(ec); acpi_ec_clear(ec);
} }
#ifdef CONFIG_PM_SLEEP
static bool acpi_ec_query_flushed(struct acpi_ec *ec) static bool acpi_ec_query_flushed(struct acpi_ec *ec)
{ {
bool flushed; bool flushed;
...@@ -557,6 +558,7 @@ static void acpi_ec_disable_event(struct acpi_ec *ec) ...@@ -557,6 +558,7 @@ static void acpi_ec_disable_event(struct acpi_ec *ec)
spin_unlock_irqrestore(&ec->lock, flags); spin_unlock_irqrestore(&ec->lock, flags);
__acpi_ec_flush_event(ec); __acpi_ec_flush_event(ec);
} }
#endif /* CONFIG_PM_SLEEP */
static bool acpi_ec_guard_event(struct acpi_ec *ec) static bool acpi_ec_guard_event(struct acpi_ec *ec)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment