summaryrefslogtreecommitdiff
path: root/board/freescale/common/i2c_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/common/i2c_common.c')
-rw-r--r--board/freescale/common/i2c_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/common/i2c_common.c b/board/freescale/common/i2c_common.c
index 0f09ed7d34f..119ed3c6171 100644
--- a/board/freescale/common/i2c_common.c
+++ b/board/freescale/common/i2c_common.c
@@ -9,7 +9,7 @@
#include <i2c.h>
#include "i2c_common.h"
-#ifdef CONFIG_DM_I2C
+#if CONFIG_IS_ENABLED(DM_I2C)
/* If DM is in use, retrieve the chip for the specified bus number */
int fsl_i2c_get_device(int address, int bus, DEVICE_HANDLE_T *dev)