From 46cf9f7b7a20a94a2eb9bdfb4b8fba2a8c889474 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 11 Jul 2015 13:56:58 -0600 Subject: Verify Kconfigs symbols are not zero for hex and int type symbols For hex and int type kconfig symbols, IS_ENABLED() doesn't work. Instead check to make sure they're defined and not zero. In some cases, zero might be a valid value, but it didn't look like zero was valid in these cases. Change-Id: Ib51fb31b3babffbf25ed3ae4ed11a2dc9a4be709 Signed-off-by: Martin Roth Reviewed-on: http://review.coreboot.org/10886 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/southbridge/amd/agesa/hudson/acpi/fch.asl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/southbridge/amd/agesa') diff --git a/src/southbridge/amd/agesa/hudson/acpi/fch.asl b/src/southbridge/amd/agesa/hudson/acpi/fch.asl index ce73894219..6006e67261 100644 --- a/src/southbridge/amd/agesa/hudson/acpi/fch.asl +++ b/src/southbridge/amd/agesa/hudson/acpi/fch.asl @@ -179,12 +179,10 @@ Method(_INI, 0) { /* Determine the OS we're running on */ OSFL() -#ifdef CONFIG_HUDSON_IMC_FWM -#if CONFIG_HUDSON_IMC_FWM +#if defined(CONFIG_HUDSON_IMC_FWM) && CONFIG_HUDSON_IMC_FWM #include "acpi/AmdImc.asl" /* Hudson IMC function */ ITZE() /* enable IMC Fan Control*/ #endif -#endif } /* End Method(_SB._INI) */ Method(OSFL, 0){ -- cgit v1.2.3