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

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

Fixes: af54b4f4c17f ("media: sunxi: Add support for the A31 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/sun6i-mipi-csi2/sun6i_mipi_csi2.c