From: Tom Rini Date: Wed, 26 Feb 2025 20:31:15 +0000 (-0600) Subject: x86: apl: Correct usage of IS_ENABLED() macro in acpi-pmc-uclass.c X-Git-Tag: v2025.07-rc2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4cc29d0109ec4cb7e8121cab3df565916b0c3c11;p=thirdparty%2Fu-boot.git 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. Signed-off-by: Tom Rini --- diff --git a/drivers/power/acpi_pmc/acpi-pmc-uclass.c b/drivers/power/acpi_pmc/acpi-pmc-uclass.c index 1e94104091e..40488402c32 100644 --- a/drivers/power/acpi_pmc/acpi-pmc-uclass.c +++ b/drivers/power/acpi_pmc/acpi-pmc-uclass.c @@ -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: