From: Roland Stigge Date: Mon, 20 Aug 2012 08:30:14 +0000 (+0200) Subject: usb: gadget: lpc32xx_udc: Support multiple controllers X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~73^2~141^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4846a1807fc6138e2f010d65757feb4b7b0c2cf;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed