commit | 806e5b7cfa96195baadc4cc4663266aaac92e22b | [log] [tgz] |
---|---|---|
author | Hans Verkuil <hverkuil@xs4all.nl> | Fri Dec 19 09:10:56 2008 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Tue Dec 30 09:39:26 2008 -0200 |
tree | 9f53edd254a2e6dcbb1f832dc164b1389db20e7f | |
parent | cfbd3072890e119639b97a133d84c13d25bba034 [diff] |
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>