Skip to content

Commit

Permalink
[media] cx231xx: Fix the max number of interfaces
Browse files Browse the repository at this point in the history
The max number of interfaces was read from the wrong descriptor.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jul 27, 2014
1 parent 1dee9b5 commit 139d288
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/usb/cx231xx/cx231xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -1185,8 +1185,7 @@ static int cx231xx_usb_probe(struct usb_interface *interface,
dev->vbi_or_sliced_cc_mode = 0;

/* get maximum no.of IAD interfaces */
assoc_desc = udev->actconfig->intf_assoc[0];
dev->max_iad_interface_count = assoc_desc->bInterfaceCount;
dev->max_iad_interface_count = udev->config->desc.bNumInterfaces;

/* init CIR module TBD */

Expand Down

0 comments on commit 139d288

Please sign in to comment.