diff options
author | Felipe Balbi <balbi@ti.com> | 2014-10-17 12:21:03 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-03 11:01:09 -0500 |
commit | d3cb25bfcdf6806dccd154ca2d62f9f447fdad5a (patch) | |
tree | f312800af4a0a3c5f08836fa326db6a9f123f81e | |
parent | 5d82ff915f019bb4f479914e4a43de00ef38da8a (diff) |
usb: gadget: udc: lpc32xx: 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>
-rw-r--r-- | drivers/usb/gadget/udc/lpc32xx_udc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c index feab0bac8fdc..cef64b98b6e5 100644 --- 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, | |||
2967 | int i; | 2967 | int i; |
2968 | struct lpc32xx_udc *udc = to_udc(gadget); | 2968 | struct lpc32xx_udc *udc = to_udc(gadget); |
2969 | 2969 | ||
2970 | if (!driver || driver != udc->driver) | ||
2971 | return -EINVAL; | ||
2972 | |||
2973 | for (i = IRQ_USB_LP; i <= IRQ_USB_ATX; i++) | 2970 | for (i = IRQ_USB_LP; i <= IRQ_USB_ATX; i++) |
2974 | disable_irq(udc->udp_irq[i]); | 2971 | disable_irq(udc->udp_irq[i]); |
2975 | 2972 | ||