aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/via/cx700/early_smbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/via/cx700/early_smbus.c')
-rw-r--r--src/northbridge/via/cx700/early_smbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/northbridge/via/cx700/early_smbus.c b/src/northbridge/via/cx700/early_smbus.c
index e106f09d5e..84a0de19e8 100644
--- a/src/northbridge/via/cx700/early_smbus.c
+++ b/src/northbridge/via/cx700/early_smbus.c
@@ -43,7 +43,7 @@
#define SMBUS_DELAY() outb(0x80, 0x80)
/* Internal functions */
-#if CONFIG_DEBUG_SMBUS
+#if IS_ENABLED(CONFIG_DEBUG_SMBUS)
static void smbus_print_error(unsigned char host_status_register, int loops)
{
/* Check if there actually was an error */
@@ -85,7 +85,7 @@ static void smbus_wait_until_ready(void)
SMBUS_DELAY();
++loops;
}
-#if CONFIG_DEBUG_SMBUS
+#if IS_ENABLED(CONFIG_DEBUG_SMBUS)
/* Some systems seem to have a flakey SMBus. No need to spew a lot of
* errors on those, once we know that SMBus access is principally
* working.
@@ -211,7 +211,7 @@ static void enable_smbus(void)
}
/* Debugging Function */
-#if CONFIG_DEBUG_SMBUS
+#if IS_ENABLED(CONFIG_DEBUG_SMBUS)
static void dump_spd_data(const struct mem_controller *ctrl)
{
int dimm, offset, regs;