diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-02-19 02:28:39 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:11:09 -0500 |
commit | ac82f59f9cc6aae3300430fcc3422e59f83d89ae (patch) | |
tree | f1d16866c32178d7a54b76bbf9c733a946876d27 /drivers/media/video/gspca/gspca.c | |
parent | 5fb2dde28122e74bbab9dae3cc04bcbc8c08b332 (diff) |
V4L/DVB: gspca_main: Allow use of input device creation code for non int. inputs
Allow use of the gspca core input device creation code by subdrivers which
have non interrupt driven camera buttons.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 2c662ed91b5b..d9a934b99a89 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
@@ -158,7 +158,7 @@ static int gspca_input_connect(struct gspca_dev *dev) | |||
158 | int err = 0; | 158 | int err = 0; |
159 | 159 | ||
160 | dev->input_dev = NULL; | 160 | dev->input_dev = NULL; |
161 | if (dev->sd_desc->int_pkt_scan) { | 161 | if (dev->sd_desc->int_pkt_scan || dev->sd_desc->other_input) { |
162 | input_dev = input_allocate_device(); | 162 | input_dev = input_allocate_device(); |
163 | if (!input_dev) | 163 | if (!input_dev) |
164 | return -ENOMEM; | 164 | return -ENOMEM; |