V4L/DVB (13925): gspca - main: Change the check of the USB video interface.
authorJean-Francois Moine <moinejf@free.fr>
Sun, 10 Jan 2010 19:36:53 +0000 (16:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:32 +0000 (15:10 -0300)
commitb7a597d11073c4c3db79743d38cc942d324b2233
tree247f4a4399968c00e3cd9e35dace05a08cf02d9c
parent6f081264f835467a3b69edc71753dac9d3ff770a
V4L/DVB (13925): gspca - main: Change the check of the USB video interface.

Some webcams have many interfaces with the same interface class, so the
previous interface check did not work.
The new code checks if the interface number is zero or the only one.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c