]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] cx231xx: Fix the max number of interfaces
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 27 Jul 2014 19:27:27 +0000 (16:27 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 27 Jul 2014 19:53:40 +0000 (16:53 -0300)
The max number of interfaces was read from the wrong descriptor.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/cx231xx/cx231xx-cards.c

index 2ee03e4ddd868ac1966f0e3e47d804a5e01ed591..6d785db96d9939d9fcf2ae021281e53323f682fe 100644 (file)
@@ -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 */