Skip to contentSkip to conversation

x86: apl: Correct usage of IS_ENABLED() macro in acpi-pmc-uclass.c

PATCH In review Tom Rini 1 participant 2 messages Feb 26, 2025 – May 9, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 x86: apl: Correct usage of IS_ENABLED() macro in acpi-pmc-uclass.c

This file was using IS_ENABLED() to test for CONFIG flags but omitted the CONFIG_ prefix and so did not work as expected.

---
Cc: Simon Glass <[email protected]>
Cc: Bin Meng <[email protected]>

---
 drivers/power/acpi_pmc/acpi-pmc-uclass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/acpi_pmc/acpi-pmc-uclass.c +1 -1
index 1e94104091ea..40488402c320 100644
@@ -141,7 +141,7 @@ int pmc_prev_sleep_state(struct udevice *dev)
 	if (upriv->pm1_sts & WAK_STS) {
 		switch (acpi_sleep_from_pm1(upriv->pm1_cnt)) {
 		case ACPI_S3:
-			if (IS_ENABLED(HAVE_ACPI_RESUME))
+			if (IS_ENABLED(CONFIG_HAVE_ACPI_RESUME))
 				prev_sleep_state = ACPI_S3;
 			break;
 		case ACPI_S5:
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 4 lines · Tom Rini

This file was using IS_ENABLED() to test for CONFIG flags but omitted the CONFIG_ prefix and so did not work as expected.

Applied to u-boot/master, thanks!

[1/1] x86: apl: Correct usage of IS_ENABLED() macro in acpi-pmc-uclass.c

      commit: 4cc29d0109ec4cb7e8121cab3df565916b0c3c11
Signature · 1 line
Tom