UDC controllers still need to call gadget driver's methods. For now, let's continue holding a gadget driver pointer on musb's structure until we finish the conversion to the udc class. Signed-off-by: Felipe Balbi <balbi@xxxxxx> --- drivers/usb/musb/musb_gadget.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 3a0c465..8b62654 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -1881,6 +1881,7 @@ static int musb_gadget_start(struct usb_gadget *g, dev_dbg(musb->controller, "registering driver %s\n", driver->function); musb->softconnect = 0; + musb->gadget_driver = driver; spin_lock_irqsave(&musb->lock, flags); musb->is_active = 1; -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html