mirror_ubuntu-kernels/drivers/media/platform/sunxi/sun6i-csi
Ondrej Jirman 8ed8528346 media: sun6i-csi: Allow the video device to be open multiple times
Previously it was possible, but a recent fix for uninitialized
`ret` variable broke this behavior.

v4l2_fh_is_singular_file() check is there just to determine
whether the power needs to be enabled, and it's not a failure
if it returns false.

Fixes: ba9139116b ("media: sun6i-csi: add a missing return code")
Signed-off-by: Ondrej Jirman <megous@megous.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-09-30 10:07:59 +02:00
..
Kconfig media: Kconfig files: use select for V4L2 subdevs and MC 2020-04-14 10:29:05 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
sun6i_csi_reg.h media: sun6i: manually fix other coding style issues 2018-11-23 05:16:24 -05:00
sun6i_csi.c media: sunxi: Make use of the helper function devm_platform_ioremap_resource() 2021-09-30 10:07:52 +02:00
sun6i_csi.h media: Rename V4L2_PIX_FMT_HM12 to V4L2_PIX_FMT_NV12_16L16 2021-09-30 10:07:39 +02:00
sun6i_video.c media: sun6i-csi: Allow the video device to be open multiple times 2021-09-30 10:07:59 +02:00
sun6i_video.h