[coreboot-gerrit] Change in coreboot[master]: amd/gardenia: Fix IS_ENABLED for fan control

Marshall Dawson (Code Review) gerrit at coreboot.org
Mon Jul 24 15:01:42 CEST 2017


Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/20746


Change subject: amd/gardenia: Fix IS_ENABLED for fan control
......................................................................

amd/gardenia: Fix IS_ENABLED for fan control

Convert from #if to if().

Change-Id: I50b3ed9ecd5947ff625536b196d90ebd4e8f1c56
Signed-off-by: Marshall Dawson <marshalldawson3rd at gmail.com>
---
M src/mainboard/amd/gardenia/BiosCallOuts.c
1 file changed, 2 insertions(+), 3 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/46/20746/1

diff --git a/src/mainboard/amd/gardenia/BiosCallOuts.c b/src/mainboard/amd/gardenia/BiosCallOuts.c
index 9b28786..ac0ed6a 100644
--- a/src/mainboard/amd/gardenia/BiosCallOuts.c
+++ b/src/mainboard/amd/gardenia/BiosCallOuts.c
@@ -92,9 +92,8 @@
 	} 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))

-- 
To view, visit https://review.coreboot.org/20746
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I50b3ed9ecd5947ff625536b196d90ebd4e8f1c56
Gerrit-Change-Number: 20746
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170724/b8ea0841/attachment.html>


More information about the coreboot-gerrit mailing list