Skip to contentSkip to conversation

firmware: arm_scmi: Drop redundant ACPI configuration guard

PATCH Applied Sudeep Holla 1 participant 2 messages Oct 26 – Nov 2 System control & power/management interface (SCPI/SCMI) Message Protocol drivers

lore
Share & tools
lore

Sudeep Holla

author maintainer
#0 lore raw

PATCH 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.

Fixes 17b3cdaa7ab4 ("firmware: arm_scmi: Fall back to ACPI HID when "compatible" is absent")
---
 drivers/firmware/arm_scmi/driver.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/firmware/arm_scmi/driver.c +0 -4
index 1e6f69b14321..6c6cb7209b13 100644
@@ -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
author maintainer Applied
#1 lore raw
Quoted 9 lines · Sudeep Holla

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.

[...]

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