USB: omap_udc: use devm_request_irq()
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sat, 24 Nov 2018 22:17:04 +0000 (00:17 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 26 Nov 2018 10:37:42 +0000 (12:37 +0200)
commit286afdde1640d8ea8916a0f05e811441fbbf4b9d
tree5f786fae4cbc79e3cdbca99fb9a1738bd1ba6eb7
parent38317f5c0f2faae5110854f36edad810f841d62f
USB: omap_udc: use devm_request_irq()

The current code fails to release the third irq on the error path
(observed by reading the code), and we get also multiple WARNs with
failing gadget drivers due to duplicate IRQ releases. Fix by using
devm_request_irq().

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/omap_udc.c