]> git.baikalelectronics.ru Git - kernel.git/commit
spi: mxic: Fix an error handling path in mxic_spi_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 Apr 2022 10:11:13 +0000 (12:11 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 07:45:14 +0000 (08:45 +0100)
commitfadb2d6d6fcbe2d1e1ea32c4dd04d1a70f11959b
tree2ecb04bdbbc236f403add658b5d9441db452683f
parentf51b037d47ed95870cf92a5478a6f9a5f6c7dbb6
spi: mxic: Fix an error handling path in mxic_spi_probe()

If spi_register_master() fails, we must undo a previous
mxic_spi_mem_ecc_probe() call, as already done in the remove function.

Fixes: dac9b4d42c94 ("spi: mxic: Add support for pipelined ECC operations")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/09c81f751241f6ec0bac7a48d4ec814a742e0d17.1648980664.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mxic.c