USB: gadget: composite: Don't call set_alt() on functions that are hidden.
authorMike Lockwood <lockwood@android.com>
Fri, 26 Feb 2010 14:30:01 +0000 (09:30 -0500)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:05 +0000 (09:09 -0700)
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/composite.c

index 46a65082212750110fe8dcdf5bd5263c2544fefe..cf7a5cf8503e25ba5ff0054ace23eff2b252d96b 100644 (file)
@@ -484,6 +484,8 @@ static int set_config(struct usb_composite_dev *cdev,
 
                if (!f)
                        break;
+               if (f->hidden)
+                       continue;
 
                /*
                 * Record which endpoints are used by the function. This is used