]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: mpfs: Fix an error handling path in mpfs_spi_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 13 Dec 2025 07:48:51 +0000 (08:48 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:32:48 +0000 (19:32 +0900)
commita8a313612af7a55083ba5720f14f1835319debee
tree66545ac7915b3e40d4c1970e1528d2ba173b5af5
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
spi: mpfs: Fix an error handling path in mpfs_spi_probe()

mpfs_spi_init() calls mpfs_spi_enable_ints(), so mpfs_spi_disable_ints()
should be called if an error occurs after calling mpfs_spi_init(), as
already done in the remove function.

Fixes: 9ac8d17694b6 ("spi: add support for microchip fpga spi controllers")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/eb35f168517cc402ef7e78f26da02863e2f45c03.1765612110.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mpfs.c