linux_dsm_epyc7002/drivers/media/spi
Christophe JAILLET 1a282446b8 media: cxd2880-spi: Fix an error handling path
[ Upstream commit dcb0145821017e929a733e2271c85c6f82b9c9f8 ]

If an error occurs after a successful 'regulator_enable()' call,
'regulator_disable()' must be called.

Fix the error handling path of the probe accordingly.

Fixes: cb496cd472 ("media: cxd2880-spi: Add optional vcc regulator")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 19:10:44 +02:00
..
cxd2880-spi.c media: cxd2880-spi: Fix an error handling path 2024-07-05 19:10:44 +02:00
gs1662.c media: spi: gs1662: Use new structure for SPI transfer delays 2020-03-05 22:46:25 +01:00
Kconfig media: i2c/Kconfig: use sub-menus for I2C support 2020-04-16 10:34:40 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00