]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ACPI / EC: Fix unused function warning when CONFIG_PM_SLEEP=n
authorEric Biggers <ebiggers@google.com>
Wed, 5 Oct 2016 17:33:16 +0000 (10:33 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 10 Oct 2016 00:22:20 +0000 (02:22 +0200)
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c

index 6805310621607335a2cf14763acc48f629d3ba31..48e19d013170936ef494d0fa88d275d37f25071a 100644 (file)
@@ -526,6 +526,7 @@ static void acpi_ec_enable_event(struct acpi_ec *ec)
                acpi_ec_clear(ec);
 }
 
+#ifdef CONFIG_PM_SLEEP
 static bool acpi_ec_query_flushed(struct acpi_ec *ec)
 {
        bool flushed;
@@ -557,6 +558,7 @@ static void acpi_ec_disable_event(struct acpi_ec *ec)
        spin_unlock_irqrestore(&ec->lock, flags);
        __acpi_ec_flush_event(ec);
 }
+#endif /* CONFIG_PM_SLEEP */
 
 static bool acpi_ec_guard_event(struct acpi_ec *ec)
 {