fcea0ccf4f
Move all of the ARM-specific initialization into one function namely acpi_arm_init(), so it is not necessary to modify/update bus.c every time a new piece of it is added. Cc: Lorenzo Pieralisi <lpieralisi@kernel.org> Cc: Rafael J. Wysocki <rafael@kernel.org> Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Hanjun Guo <guohanjun@huawei.com> Link: https://lore.kernel.org/r/CAJZ5v0iBZRZmV_oU+VurqxnVMbFN_ttqrL=cLh0sUH+=u0PYsw@mail.gmail.com Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Reviewed-by: Lorenzo Pieralisi <lpieralisi@kernel.org> Acked-by: Rafael J. Wysocki <rafael@kernel.org> Reviewed-by: Shaoqin Huang <shahuang@redhat.com> Link: https://lore.kernel.org/r/20230606093531.2746732-1-sudeep.holla@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
14 lines
285 B
C
14 lines
285 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
#include <linux/acpi.h>
|
|
#include "init.h"
|
|
|
|
void __init acpi_arm_init(void)
|
|
{
|
|
if (IS_ENABLED(CONFIG_ACPI_AGDI))
|
|
acpi_agdi_init();
|
|
if (IS_ENABLED(CONFIG_ACPI_APMT))
|
|
acpi_apmt_init();
|
|
if (IS_ENABLED(CONFIG_ACPI_IORT))
|
|
acpi_iort_init();
|
|
}
|