summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-10-17 20:17:08 +0400
committerFelipe Balbi <balbi@ti.com>2014-11-03 19:01:08 +0300
commitaf9501f656d2250dbf04e48f77025b3783cc0505 (patch)
tree33155849e5df789576a2385a95c13871a3d3320e /drivers
parent21090f06f09f72f2806c19f0bdcd4fde622c2676 (diff)
downloadlinux-af9501f656d2250dbf04e48f77025b3783cc0505.tar.xz
usb: gadget: udc: at91: do not rely on 'driver' argument
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/udc/at91_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at91_udc.c
index 9968f5331fe4..cffd2a22dca0 100644
--- a/drivers/usb/gadget/udc/at91_udc.c
+++ b/drivers/usb/gadget/udc/at91_udc.c
@@ -1657,9 +1657,9 @@ static int at91_stop(struct usb_gadget *gadget,
at91_udp_write(udc, AT91_UDP_IDR, ~0);
spin_unlock_irqrestore(&udc->lock, flags);
+ DBG("unbound from %s\n", udc->driver->driver.name);
udc->driver = NULL;
- DBG("unbound from %s\n", driver->driver.name);
return 0;
}