Skip to content
Commit d0d8fa44 authored by Etienne Carriere's avatar Etienne Carriere Committed by Benjamin Cabé
Browse files

drivers: i2c: stm32: don't manage cache aside DMA support



Fix STM32 I2C driver to not call cache management related functions
when DMA is not used. This change fixes an issue introduced by
commit 42c3a781 ("i2c: stm32: Add cache memory support"). The issue
makes boards embedding this driver with both CONFIG_I2C_STM32_V2_DMA
and CONFIG_ARCH_MPU disabled to fail to build with an error trace message
like the below:
   .../i2c_ll_stm32_v2.c:701: undefined reference to `mem_attr_check_buf'

Fixes: 42c3a781
Signed-off-by: default avatarEtienne Carriere <etienne.carriere@st.com>
parent 72fcca03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment