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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:02:58 +0000 (12:02 -0800)
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/composite.c

index 46a6508..cf7a5cf 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