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)
commit27c90870e7018cd5b93991ca398444a9b0f74113
treefcddd982f3fef22624d2f68b8e5eeeecefe84556
parent8ce98dd21fcfaab3b6177cfc167d6b6b71dc9fc1
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