From: Hans Verkuil Date: Fri, 19 Dec 2008 12:10:56 +0000 (-0300) Subject: V4L/DVB (9942): v4l2-dev: check for parent device in get_index. X-Git-Tag: v2.6.29-rc1~556^2~151 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=806e5b7cfa96195baadc4cc4663266aaac92e22b;p=pandora-kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed