projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d82ff9
)
usb: gadget: udc: lpc32xx: do not rely on 'driver' argument
author
Felipe Balbi
<balbi@ti.com>
Fri, 17 Oct 2014 16:21:03 +0000
(11:21 -0500)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 3 Nov 2014 16:01:09 +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/lpc32xx_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/lpc32xx_udc.c
b/drivers/usb/gadget/udc/lpc32xx_udc.c
index
feab0ba
..
cef64b9
100644
(file)
--- a/
drivers/usb/gadget/udc/lpc32xx_udc.c
+++ b/
drivers/usb/gadget/udc/lpc32xx_udc.c
@@
-2967,9
+2967,6
@@
static int lpc32xx_stop(struct usb_gadget *gadget,
int i;
struct lpc32xx_udc *udc = to_udc(gadget);
- if (!driver || driver != udc->driver)
- return -EINVAL;
-
for (i = IRQ_USB_LP; i <= IRQ_USB_ATX; i++)
disable_irq(udc->udp_irq[i]);