diff mbox

[46/67] usb: gadget: udc: fsl_qe: do not rely on 'driver' argument

Message ID 1413566234-13537-47-git-send-email-balbi@ti.com
State Accepted
Commit 5d82ff915f019bb4f479914e4a43de00ef38da8a
Headers show

Commit Message

Felipe Balbi Oct. 17, 2014, 5:16 p.m. UTC
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 <balbi@ti.com>
---
 drivers/usb/gadget/udc/fsl_qe_udc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c
index 6601b0f..be78857 100644
--- a/drivers/usb/gadget/udc/fsl_qe_udc.c
+++ b/drivers/usb/gadget/udc/fsl_qe_udc.c
@@ -2334,10 +2334,10 @@  static int fsl_qe_stop(struct usb_gadget *gadget,
 		nuke(loop_ep, -ESHUTDOWN);
 	spin_unlock_irqrestore(&udc->lock, flags);
 
+	dev_info(udc->dev, "unregistered gadget driver '%s'\r\n",
+			udc->driver->driver.name);
 	udc->driver = NULL;
 
-	dev_info(udc->dev, "unregistered gadget driver '%s'\r\n",
-			driver->driver.name);
 	return 0;
 }