firmware: arm_scmi: Drop redundant ACPI configuration guard
Sudeep Holla
maintainerPATCH 1/1 firmware: arm_scmi: Drop redundant ACPI configuration guard
Commit 98b9bfb659a9 ("ACPI: bus: Use acpi/acpi_bus.h without CONFIG_ACPI") makes the ACPI bus helpers and their stubs available through linux/acpi.h for all configurations.
Drop the local CONFIG_ACPI conditional around scmi_acpi_device_hid(). ACPI_COMPANION() returns NULL when ACPI is disabled, so the existing "unknown" fallback preserves the current behavior.
--- drivers/firmware/arm_scmi/driver.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/firmware/arm_scmi/driver.c +0 -4
@@ -3107,11 +3107,7 @@ static void scmi_debugfs_common_cleanup(void *d)static const char *scmi_acpi_device_hid (struct acpi_device *adev) { -#ifdef CONFIG_ACPI return adev ?acpi_device_hid (adev) :"unknown" ; -#else -return "unknown" ; -#endif }static struct scmi_debug_info *scmi_debugfs_common_setup (struct scmi_info *info)
Signature · 1 line
2.43.0
Quoted 9 lines · Sudeep Holla
Commit
98b9bfb659a9("ACPI: bus: Useacpi/acpi_bus.hwithoutCONFIG_ACPI") makes the ACPI bus helpers and their stubs available throughlinux/acpi.hfor all configurations.Drop the local
CONFIG_ACPIconditional aroundscmi_acpi_device_hid().ACPI_COMPANION()returns NULL when ACPI is disabled, so the existing "unknown" fallback preserves the current behavior.[...]
Applied to sudeep.holla/linux (for-next/scmi/fixes), thanks!
[1/1] firmware: arm_scmi: Drop redundant ACPI configuration guard
https://git.kernel.org/sudeep.holla/c/7f73b4cb4b3a
Signature · 2 lines
Regards, Sudeep