]> git.baikalelectronics.ru Git - kernel.git/commit
spi: stm32: defer probe for reset
authorAlain Volmat <alain.volmat@foss.st.com>
Fri, 5 Feb 2021 18:59:30 +0000 (19:59 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 5 Feb 2021 19:16:59 +0000 (19:16 +0000)
commit03714f02fd5ed10b1c53c697cd96a6d1a2e9024b
tree4557a88d934ba65b878e6cc6885aeea0e46e1921
parenta3a8266c8ee118b05a057a44e243800bdfc26de4
spi: stm32: defer probe for reset

Defer the probe operation when a reset controller device is expected
but have not yet been probed.

This change replaces use of devm_reset_control_get_exclusive() with
devm_reset_control_get_optional_exclusive() as reset controller is
optional which is now explicitly stated.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Link: https://lore.kernel.org/r/1612551572-495-7-git-send-email-alain.volmat@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c