diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/gspca.h | 3 |
2 files changed, 4 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; |
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h index 0ed254b496a5..02c696a22be0 100644 --- a/drivers/media/video/gspca/gspca.h +++ b/drivers/media/video/gspca/gspca.h | |||
@@ -131,6 +131,9 @@ struct sd_desc { | |||
131 | cam_ident_op get_chip_ident; | 131 | cam_ident_op get_chip_ident; |
132 | #ifdef CONFIG_INPUT | 132 | #ifdef CONFIG_INPUT |
133 | cam_int_pkt_op int_pkt_scan; | 133 | cam_int_pkt_op int_pkt_scan; |
134 | /* other_input makes the gspca core create gspca_dev->input even when | ||
135 | int_pkt_scan is NULL, for cams with non interrupt driven buttons */ | ||
136 | u8 other_input; | ||
134 | #endif | 137 | #endif |
135 | }; | 138 | }; |
136 | 139 | ||