diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-27 15:27:27 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-27 15:53:40 -0400 |
commit | 139d28826b8e2bc7a9232fde0d2f14812914f501 (patch) | |
tree | 55b67b5188d4c47686bb1a54e3a443db1da92cc3 /drivers/media/usb/cx231xx | |
parent | 1dee9b59d69a15d566c16ee6fbd7216108ad5cac (diff) |
[media] cx231xx: Fix the max number of interfaces
The max number of interfaces was read from the wrong descriptor.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/cx231xx')
-rw-r--r-- | drivers/media/usb/cx231xx/cx231xx-cards.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/usb/cx231xx/cx231xx-cards.c index 2ee03e4ddd86..6d785db96d99 100644 --- a/drivers/media/usb/cx231xx/cx231xx-cards.c +++ b/drivers/media/usb/cx231xx/cx231xx-cards.c | |||
@@ -1185,8 +1185,7 @@ static int cx231xx_usb_probe(struct usb_interface *interface, | |||
1185 | dev->vbi_or_sliced_cc_mode = 0; | 1185 | dev->vbi_or_sliced_cc_mode = 0; |
1186 | 1186 | ||
1187 | /* get maximum no.of IAD interfaces */ | 1187 | /* get maximum no.of IAD interfaces */ |
1188 | assoc_desc = udev->actconfig->intf_assoc[0]; | 1188 | dev->max_iad_interface_count = udev->config->desc.bNumInterfaces; |
1189 | dev->max_iad_interface_count = assoc_desc->bInterfaceCount; | ||
1190 | 1189 | ||
1191 | /* init CIR module TBD */ | 1190 | /* init CIR module TBD */ |
1192 | 1191 | ||