Skip to content
Commit 8ed85283 authored by Ondrej Jirman's avatar Ondrej Jirman Committed by Mauro Carvalho Chehab
Browse files

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: ba913911 ("media: sun6i-csi: add a missing return code")
Signed-off-by: default avatarOndrej Jirman <megous@megous.com>
Reviewed-by: default avatarJernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 6d0d779b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment