usb: gadget: fix g_serial regression
commitfef6964452abae55c82e1615ac505b8377df00e9
authorRobert Jarzmik <robert.jarzmik@free.fr>
Fri, 18 Nov 2011 19:16:27 +0000 (18 20:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 29 Nov 2011 14:19:03 +0000 (29 23:19 +0900)
tree6356cc0c3ab075dc4575a6b941cd830d6576c33a
parent89f829a50f7d0d0f3a15c482a7a65dd0b133a5f5
usb: gadget: fix g_serial regression

Commit "usb: gadget: use config_ep_by_speed() instead of
ep_choose()" broke g_serial in "non ACM nor OBEX"
mode. Apply a trivial fix on usb endpoints discovery.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_serial.c