musb->gadget_driver is not getting reset to NULL after the gadget driver is removed.
Fixing the same by resetting the musb->gadget_driver to NULL when gadget driver is removed. Signed-off-by: Ajay Kumar Gupta <ajay.gu...@ti.com> --- Changes from v1: - Fixed Sergei's commend on [PATCH 4/4] 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 95918da..b330ea6 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -2067,6 +2067,7 @@ static int musb_gadget_stop(struct usb_gadget *g, if (!is_otg_enabled(musb)) musb_stop(musb); + musb->gadget_driver = NULL; pm_runtime_put(musb->controller); return 0; -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html