Skip to content

Commit e9380df

Browse files
superm1linusw
authored andcommitted
ACPI: Add stubs for wakeup handler functions
The commit ddfd9dc ("ACPI: PM: Add acpi_[un]register_wakeup_handler()") added new functions for drivers to use during the s2idle wakeup path, but didn't add stubs for when CONFIG_ACPI wasn't set. Add those stubs in for other drivers to be able to use. Fixes: ddfd9dc ("ACPI: PM: Add acpi_[un]register_wakeup_handler()") Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://lore.kernel.org/r/20211101014853.6177-1-mario.limonciello@amd.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent fa55b7d commit e9380df

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

include/linux/acpi.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,15 @@ static inline int acpi_get_local_address(acpi_handle handle, u32 *addr)
974974
return -ENODEV;
975975
}
976976

977+
static inline int acpi_register_wakeup_handler(int wake_irq,
978+
bool (*wakeup)(void *context), void *context)
979+
{
980+
return -ENXIO;
981+
}
982+
983+
static inline void acpi_unregister_wakeup_handler(
984+
bool (*wakeup)(void *context), void *context) { }
985+
977986
#endif /* !CONFIG_ACPI */
978987

979988
#ifdef CONFIG_ACPI_HOTPLUG_IOAPIC

0 commit comments

Comments
 (0)