diff options
author | Eric Biggers <ebiggers@google.com> | 2016-10-05 13:33:16 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-10-09 20:22:20 -0400 |
commit | eab05ec38073f72389386f4a77fb58c06e246a4c (patch) | |
tree | d280f0c57e6cd0a4e1564dee5bc6caec688e3c6d /drivers/acpi | |
parent | 97cb159fd91d00f8d7d1adeb075503dc0d946bff (diff) |
ACPI / EC: Fix unused function warning when CONFIG_PM_SLEEP=n
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/ec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 680531062160..48e19d013170 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -526,6 +526,7 @@ static void acpi_ec_enable_event(struct acpi_ec *ec) | |||
526 | acpi_ec_clear(ec); | 526 | acpi_ec_clear(ec); |
527 | } | 527 | } |
528 | 528 | ||
529 | #ifdef CONFIG_PM_SLEEP | ||
529 | static bool acpi_ec_query_flushed(struct acpi_ec *ec) | 530 | static bool acpi_ec_query_flushed(struct acpi_ec *ec) |
530 | { | 531 | { |
531 | bool flushed; | 532 | bool flushed; |
@@ -557,6 +558,7 @@ static void acpi_ec_disable_event(struct acpi_ec *ec) | |||
557 | spin_unlock_irqrestore(&ec->lock, flags); | 558 | spin_unlock_irqrestore(&ec->lock, flags); |
558 | __acpi_ec_flush_event(ec); | 559 | __acpi_ec_flush_event(ec); |
559 | } | 560 | } |
561 | #endif /* CONFIG_PM_SLEEP */ | ||
560 | 562 | ||
561 | static bool acpi_ec_guard_event(struct acpi_ec *ec) | 563 | static bool acpi_ec_guard_event(struct acpi_ec *ec) |
562 | { | 564 | { |