]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: stm32: csi: register subdev only at end of probe
authorAlain Volmat <alain.volmat@foss.st.com>
Mon, 13 Jan 2025 08:57:54 +0000 (09:57 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:48 +0000 (15:22 +0100)
commitc631dc74b0691f94049d599024718a092030e22b
treeae64fd35d1d718bf5ad48a01e5f1b0d647450c41
parentf7cd9c94959e7a5b8c4eca33e20bd6ba1b048a64
media: stm32: csi: register subdev only at end of probe

Call v4l2_async_register_subdev only whenever all initialization
are completed at the end of the probe function.
Remove as well useless err_free_priv label by returning directly
upon error.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/st/stm32/stm32-csi.c