usb: dwc3: gadget: introduce and use enable/disable irq methods
authorFelipe Balbi <balbi@ti.com>
Fri, 8 Feb 2013 13:24:04 +0000 (15:24 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:00 +0000 (11:17 +0200)
commit8698e2acf3a5e8d6f260ca7675f94e5087df5ae8
tree7e18c79a0f72c410d9af65841aed9af42d9fe81f
parentf122d33e4b0045a42238b9a4c3943adf7e8313c1
usb: dwc3: gadget: introduce and use enable/disable irq methods

we don't need to enable IRQs until we have
a gadget driver loaded and ready to work,
so let's delay IRQ enable to ->udc_start()
and IRQ disable to ->udc_stop().

While at that, also move the related use of
request_irq() and free_irq().

Tested-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c