ACPI: Add stub for acpi_find_child_device()

Provide a NULL-returning stub when CONFIG_ACPI is disabled so callers can
be compiled without ACPI support.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Closes: https://lore.kernel.org/linux-sound/20260925131104.118993-1-arnd@kernel.org/
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/20260925162628.4142365-1-mario.limonciello@amd.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Mario Limonciello 2026-09-25 11:26:24 -05:00 committed by Rafael J. Wysocki
parent 0fa8ad52b6
commit 62d6cb1f7d

View File

@ -943,6 +943,13 @@ u32 arch_acpi_add_auto_dep(acpi_handle handle);
#else /* CONFIG_ACPI */
static inline struct acpi_device *
acpi_find_child_device(struct acpi_device *parent, u64 address,
bool check_children)
{
return NULL;
}
static inline bool acpi_has_method(acpi_handle handle, char *name)
{
return false;