Skip to content

Commit 3ac9b73

Browse files
superm1rafaeljw
authored andcommitted
ACPI: Adjust #ifdef for *_lps0_dev use
The `#ifdef` for acpi_register_lps0_dev() currently is guarded against `CONFIG_X86`, but actually the functions contained in the block are specifically sleep related functions. Adjust the guard to also check for `CONFIG_SUSPEND`. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 706a741 commit 3ac9b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/acpi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ void acpi_os_set_prepare_extended_sleep(int (*func)(u8 sleep_state,
11001100

11011101
acpi_status acpi_os_prepare_extended_sleep(u8 sleep_state,
11021102
u32 val_a, u32 val_b);
1103-
#ifdef CONFIG_X86
1103+
#if defined(CONFIG_SUSPEND) && defined(CONFIG_X86)
11041104
struct acpi_s2idle_dev_ops {
11051105
struct list_head list_node;
11061106
void (*prepare)(void);
@@ -1109,7 +1109,7 @@ struct acpi_s2idle_dev_ops {
11091109
};
11101110
int acpi_register_lps0_dev(struct acpi_s2idle_dev_ops *arg);
11111111
void acpi_unregister_lps0_dev(struct acpi_s2idle_dev_ops *arg);
1112-
#endif /* CONFIG_X86 */
1112+
#endif /* CONFIG_SUSPEND && CONFIG_X86 */
11131113
#ifndef CONFIG_IA64
11141114
void arch_reserve_mem_area(acpi_physical_address addr, size_t size);
11151115
#else

0 commit comments

Comments
 (0)