Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3cb25bf authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
parent 5d82ff91
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -2967,9 +2967,6 @@ static int lpc32xx_stop(struct usb_gadget *gadget,
	int i;
	int i;
	struct lpc32xx_udc *udc = to_udc(gadget);
	struct lpc32xx_udc *udc = to_udc(gadget);


	if (!driver || driver != udc->driver)
		return -EINVAL;

	for (i = IRQ_USB_LP; i <= IRQ_USB_ATX; i++)
	for (i = IRQ_USB_LP; i <= IRQ_USB_ATX; i++)
		disable_irq(udc->udp_irq[i]);
		disable_irq(udc->udp_irq[i]);