summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2017-07-11 10:47:22 -0600
committerMarc Jones <marc@marcjonesconsulting.com>2017-07-25 15:11:53 +0000
commit99428566a6acbb7e622b236a54b7569eef1363cb (patch)
treee9a3b8fe080a6be9fd4c79dd1b53c370d99af0bc /src
parent0e4f83e7b0c6719872b2eef41a0da7b7e8dceab3 (diff)
downloadcoreboot-99428566a6acbb7e622b236a54b7569eef1363cb.tar.xz
amd/gardenia: Fix IS_ENABLED for fan control
Convert from #if to if(). Change-Id: I50b3ed9ecd5947ff625536b196d90ebd4e8f1c56 Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/20746 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/amd/gardenia/BiosCallOuts.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainboard/amd/gardenia/BiosCallOuts.c b/src/mainboard/amd/gardenia/BiosCallOuts.c
index 9b28786ad5..ac0ed6ad57 100644
--- a/src/mainboard/amd/gardenia/BiosCallOuts.c
+++ b/src/mainboard/amd/gardenia/BiosCallOuts.c
@@ -92,9 +92,8 @@ AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr)
} else if (StdHeader->Func == AMD_INIT_ENV) {
FCH_DATA_BLOCK *FchParams_env = (FCH_DATA_BLOCK *)FchData;
printk(BIOS_DEBUG, "Fch OEM config in INIT ENV ");
-#if IS_ENABLED(CONFIG_STONEYRIDGE_IMC_FWM)
- oem_fan_control(FchParams_env);
-#endif
+ if (IS_ENABLED(CONFIG_STONEYRIDGE_IMC_FWM))
+ oem_fan_control(FchParams_env);
/* XHCI configuration */
if (IS_ENABLED(CONFIG_STONEYRIDGE_XHCI_ENABLE))