Re: [PATCH 3/3] usb: gadget: lpc32xx_udc: Support multiple controllers

From: Sebastian Andrzej Siewior
Date: Mon Aug 20 2012 - 04:16:32 EST


On 08/20/2012 10:11 AM, Roland Stigge wrote:
--- linux-2.6.orig/drivers/usb/gadget/lpc32xx_udc.c
+++ linux-2.6/drivers/usb/gadget/lpc32xx_udc.c
@@ -2608,10 +2608,9 @@ static void nop_release(struct device *d
/* nothing to free */
}

-static struct lpc32xx_udc controller = {
+static struct lpc32xx_udc controller_template = {

make it const please.

.gadget = {
.ops =&lpc32xx_udc_ops,
- .ep0 =&controller.ep[0].ep,
.name = driver_name,
.dev = {
.init_name = "gadget",

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/