summaryrefslogtreecommitdiff
path: root/drivers/media/platform/soc_camera
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-06-12 06:04:04 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-21 11:00:51 -0300
commit9e882e3bc97c7774b93f3db483d2e75767b5cad1 (patch)
treec9d22c0f50320c0303b89ab9f33363dfcda64337 /drivers/media/platform/soc_camera
parent7feeb1482153575bc9221eff098e9a1313522dfe (diff)
[media] v4l2-device: check if already unregistered
It was possible to unregister an already unregistered v4l2_device struct. Add a check whether that already happened and just return if that was the case. Also refuse to register a v4l2_device if both the dev and name fields are empty. A warning was already produced in that case, but since the name field is now used to detect whether or not the v4l2_device was already unregistered this particular combination should be rejected. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/soc_camera')
0 files changed, 0 insertions, 0 deletions