]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (9942): v4l2-dev: check for parent device in get_index.
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 19 Dec 2008 12:10:56 +0000 (09:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:26 +0000 (09:39 -0200)
commit4a0f027825affe332266b735914e6c3ef24626aa
tree9f53edd254a2e6dcbb1f832dc164b1389db20e7f
parent97d2b5287c7f6d27696040dc951d6f853a334667
V4L/DVB (9942): v4l2-dev: check for parent device in get_index.

get_index requires a valid parent device in order to discover which
indices are in use. Some drivers (e.g. pvrusb2) do not set the parent
device. In that case just return 0.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c