media: sunxi: Fix some error handling path of sun8i_a83t_mipi_csi2_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 23 Aug 2022 07:42:01 +0000 (09:42 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 09:21:43 +0000 (11:21 +0200)
commit466c1e6d05003707e8baa16668e7bc287d875d5e
tree2884f2ee222098eb257055ef952a8164b5465411
parenta90bc000770c3a745fd26d62c89b1b20ebc0e145
media: sunxi: Fix some error handling path of sun8i_a83t_mipi_csi2_probe()

Release some resources in the error handling path of the probe and of
sun8i_a83t_mipi_csi2_resources_setup(), as already done in the remove
function.

Fixes: 576d196c522b ("media: sunxi: Add support for the A83T MIPI CSI-2 controller")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c