usb: gadget: lpc32xx_udc: Support multiple controllers
authorRoland Stigge <stigge@antcom.de>
Mon, 20 Aug 2012 08:30:14 +0000 (10:30 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 31 Aug 2012 09:41:25 +0000 (12:41 +0300)
commitc4846a1807fc6138e2f010d65757feb4b7b0c2cf
tree90109b2515710dd4f002c50ee83a908ae54d5c13
parent78ca9139736f059b70bd797b01227271e0efa681
usb: gadget: lpc32xx_udc: Support multiple controllers

The lpc32xx_udc driver supported only one controller by defining a global
static struct for it. This patch enables multiple instances of the controller
by dynamic allocation of the struct at probe(). A static struct is kept as a
template on initialization since it does some complex preset, reflecting fixed
hardware endpoint structure.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/lpc32xx_udc.c