]> git.baikalelectronics.ru Git - kernel.git/commit
media: sun6i-csi: Allow the video device to be open multiple times
authorOndrej Jirman <megous@megous.com>
Wed, 8 Sep 2021 10:56:09 +0000 (12:56 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:59 +0000 (10:07 +0200)
commit90ed52b1732c9fd54e6250f8b3df83457d7c03af
tree2eaf5aa0cba12d44e270d34b6ee606809e524738
parentadcc206dba5fdd7c7be2ea8d4c26c8d0e71f0984
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: 6ee677f5a273 ("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>
drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c