spi: microchip-core: Fix an error handling path in mchp_corespi_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 5 Dec 2025 21:14:10 +0000 (22:14 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 9 Dec 2025 01:01:32 +0000 (10:01 +0900)
commit8cef9b451dc6fdf86b92c7a35d55a47465d500db
treebc7d99b75f763a662b1d0d8a8361ffa8799f5174
parente1f2e77624dbc35f317efd7e092aa91f7136f3f9
spi: microchip-core: Fix an error handling path in mchp_corespi_probe()

mchp_corespi_init() calls mchp_corespi_enable_ints(), so
mchp_corespi_disable_ints() should be called if an error occurs after
calling mchp_corespi_init(), as already done in the remove function.

Fixes: 059f545832be ("spi: add support for microchip "soft" spi controller")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/a7aaff1f28a83303a288de2914724a874fe1a11e.1764969247.git.christophe.jaillet@wanadoo.fr
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-microchip-core-spi.c