From ddb4dcab8a6e08364d30b671dbd60c5c9ce71db7 Mon Sep 17 00:00:00 2001 From: Richard Spiegel Date: Fri, 2 Feb 2018 15:28:39 -0700 Subject: soc/amd/stoneyridge/acpi/sleepstates.asl: Fix guarded code Remove #if statement and replace it with if(IS_ENABLED(...)) per coreboot recommendations. BUG=b:62200858 TEST=Build kahlee. Change-Id: I268b228706a625e1415c4f24e808261c279ba41e Signed-off-by: Richard Spiegel Reviewed-on: https://review.coreboot.org/23575 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/amd/stoneyridge/acpi/sleepstates.asl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/soc/amd/stoneyridge') diff --git a/src/soc/amd/stoneyridge/acpi/sleepstates.asl b/src/soc/amd/stoneyridge/acpi/sleepstates.asl index 2f3673878b..0b297fa1f5 100644 --- a/src/soc/amd/stoneyridge/acpi/sleepstates.asl +++ b/src/soc/amd/stoneyridge/acpi/sleepstates.asl @@ -15,11 +15,10 @@ */ /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */ -#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME) -Name (SSFG, 0x0D) -#else -Name (SSFG, 0x09) -#endif +Name(SSFG, 0x09) +If (IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)) { + Store(0x0D, SSFG) +} /* Supported sleep states: */ Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */ -- cgit v1.2.3