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>
Thu, 30 Sep 2010 00:49:30 +0000 (17:49 -0700)
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/composite.c

index 5fa948978f20a4c5e352b65a4d1787de2ebe3a86..61dcd0cc9d10526d5d21babee9f8e049ce2ebf86 100644 (file)
@@ -480,6 +480,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