diff --git a/arch/arm/src/stm32l4/stm32l4_i2c.c b/arch/arm/src/stm32l4/stm32l4_i2c.c index 58c2fa780f..18da3a2d26 100644 --- a/arch/arm/src/stm32l4/stm32l4_i2c.c +++ b/arch/arm/src/stm32l4/stm32l4_i2c.c @@ -1532,7 +1532,7 @@ static int stm32l4_i2c_isr_process(struct stm32l4_i2c_priv_s *priv) * ************************************************************************************/ -#ifdef CONFIG_STM32L4_I2C2 +#ifndef CONFIG_I2C_POLLED static int stm32l4_i2c_isr(int irq, void *context, FAR void *arg) { struct stm32l4_i2c_priv_s *priv = (struct stm32l4_i2c_priv_s *)arg;