mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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:
parent
0fa8ad52b6
commit
62d6cb1f7d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user