aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-keystone/ddr3_spd.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-keystone/ddr3_spd.c')
-rw-r--r--arch/arm/mach-keystone/ddr3_spd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-keystone/ddr3_spd.c b/arch/arm/mach-keystone/ddr3_spd.c
index 3803449c2b..c4a1908af8 100644
--- a/arch/arm/mach-keystone/ddr3_spd.c
+++ b/arch/arm/mach-keystone/ddr3_spd.c
@@ -404,7 +404,7 @@ static void init_ddr3param(struct ddr3_spd_cb *spd_cb,
static int ddr3_read_spd(ddr3_spd_eeprom_t *spd_params)
{
int ret;
-#ifndef CONFIG_DM_I2C
+#if !CONFIG_IS_ENABLED(DM_I2C)
int old_bus;
i2c_init(CONFIG_SYS_DAVINCI_I2C_SPEED, CONFIG_SYS_DAVINCI_I2C_SLAVE);