WSL2-Linux-Kernel/drivers/media/platform/sunxi
Ondrej Jirman 0fd64cd9ff media: sun6i-csi: Allow the video device to be open multiple times
[ Upstream commit 8ed8528346 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 19:16:28 +01:00
..
sun4i-csi media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
sun6i-csi media: sun6i-csi: Allow the video device to be open multiple times 2021-11-18 19:16:28 +01:00
sun8i-di media: sun8i-di: Fix runtime PM imbalance in deinterlace_start_streaming 2021-04-09 12:58:34 +02:00
sun8i-rotate media: sunxi: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:34 +02:00
Kconfig media: add SPDX headers on Kconfig and Makefile files 2020-04-14 10:29:05 +02:00
Makefile media: add SPDX headers on Kconfig and Makefile files 2020-04-14 10:29:05 +02:00