future patches will remove the extra 'driver'
argument to ->udc_stop(), in order to do that,
we must make sure that our UDC does not rely
on it first.

Signed-off-by: Felipe Balbi <[email protected]>
---
 drivers/usb/musb/musb_gadget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 24c8c02..fdb8b31 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1946,11 +1946,11 @@ static int musb_gadget_stop(struct usb_gadget *g,
        (void) musb_gadget_vbus_draw(&musb->g, 0);
 
        musb->xceiv->state = OTG_STATE_UNDEFINED;
-       stop_activity(musb, driver);
+       stop_activity(musb, NULL);
        otg_set_peripheral(musb->xceiv->otg, NULL);
 
        dev_dbg(musb->controller, "unregistering driver %s\n",
-                                 driver ? driver->function : "(removed)");
+                       musb->gadget_driver->function);
 
        musb->is_active = 0;
        musb->gadget_driver = NULL;
-- 
2.1.0.GIT

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to