]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: serial gadget: simplify endpoint handling
authorDavid Brownell <david-b@pacbell.net>
Wed, 7 May 2008 21:25:24 +0000 (14:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 May 2008 17:00:28 +0000 (10:00 -0700)
commit734d37c654569f03156f8603a9761c402a73aa20
tree880694ade8bc79bd45425ec108e002776cea1628
parent2c2d28a015f0dd36c5d1a06e16923e3142574066
USB: serial gadget: simplify endpoint handling

Switch serial gadget away from a *very* old idiom:  just remember
the endpoints we'll be using, instead of looking them up by name
each time.  This is a net code and data (globals) shrink.

Also fix a small memory leak in the rmmod path, by working the
same as the disconnect code.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Al Borchers <alborchers@steinerpoint.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/serial.c