projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21090f0
)
usb: gadget: udc: at91: do not rely on 'driver' argument
author
Felipe Balbi
<balbi@ti.com>
Fri, 17 Oct 2014 16:17:08 +0000
(11:17 -0500)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 3 Nov 2014 16:01:08 +0000
(10:01 -0600)
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/at91_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/at91_udc.c
b/drivers/usb/gadget/udc/at91_udc.c
index 9968f5331fe4988fbb282febbe9b2071e2533388..cffd2a22dca0fe3f8ebe22fca6e80b6a01fe92ec 100644
(file)
--- 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;
}