]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: stm32: fix error message on upon dma_request_chan & defer handling
authorAlain Volmat <alain.volmat@st.com>
Mon, 14 Sep 2020 10:40:33 +0000 (12:40 +0200)
committerWolfram Sang <wsa@kernel.org>
Mon, 21 Sep 2020 09:45:43 +0000 (11:45 +0200)
commitf152d779da8ab2297f7e58d66d5e38b6e72a3205
treefcddd982f3fef22624d2f68b8e5eeeecefe84556
parentd6162e09649edd6a8d3973ab34c3b44309612bf3
i2c: stm32: fix error message on upon dma_request_chan & defer handling

DMA usage is optional for the I2C driver. check for the -ENODEV
error in order to avoid displaying an error when no DMA
has been requested.
Cleaning up the error messages during probe, remove the additional
-EPROBE_DEFER within probe function since additional error message
doesn't give much more information than what is already reported
within the stm32_i2c_dma_request function.

Signed-off-by: Alain Volmat <alain.volmat@st.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-stm32.c
drivers/i2c/busses/i2c-stm32f7.c