mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 02:30:52 +07:00
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>
This commit is contained in:
parent
97cb159fd9
commit
eab05ec380
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user