]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: stm32-ospi: Fix an error handling path in stm32_ospi_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 18 Apr 2025 11:27:53 +0000 (13:27 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 22 Apr 2025 13:58:18 +0000 (14:58 +0100)
commit460b14b0929fa9f658a7e159ef646ce456962ab0
tree35eafafce80c24d2e5935ed92fa9f18f9825a218
parent8ffd015db85fea3e15a77027fda6c02ced4d2444
spi: stm32-ospi: Fix an error handling path in stm32_ospi_probe()

If an error occurs after a successful stm32_ospi_dma_setup() call, some
dma_release_channel() calls are needed to release some resources, as
already done in the remove function.

Fixes: 79b8a705e26c ("spi: stm32: Add OSPI driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://patch.msgid.link/2674c8df1d05ab312826b69bfe9559f81d125a0b.1744975624.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32-ospi.c