diff options
author | Felipe Balbi <balbi@ti.com> | 2015-09-28 15:18:33 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-09-28 15:19:31 -0500 |
commit | 70f3a9caa11665e9f9aace581d85d8483716a4c8 (patch) | |
tree | 9901d4ce7f92f50f2ca79157f75a318007409ed5 /drivers/usb/dwc3 | |
parent | e6e709b7ab89a0d9ec0d803cb2f3b66902145ba0 (diff) | |
download | talos-obmc-linux-70f3a9caa11665e9f9aace581d85d8483716a4c8.tar.gz talos-obmc-linux-70f3a9caa11665e9f9aace581d85d8483716a4c8.zip |
usb: dwc3: gadget: remove unnecessary _irqsave()
We *know* our threads executes with our IRQs
disabled. We really don't need to use the _irqsave()
variant of spin_lock().
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 81bfb9ad1e2e..cca806e09e5b 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2642,16 +2642,15 @@ static irqreturn_t dwc3_process_event_buf(struct dwc3 *dwc, u32 buf) static irqreturn_t dwc3_thread_interrupt(int irq, void *_dwc) { struct dwc3 *dwc = _dwc; - unsigned long flags; irqreturn_t ret = IRQ_NONE; int i; - spin_lock_irqsave(&dwc->lock, flags); + spin_lock(&dwc->lock); for (i = 0; i < dwc->num_event_buffers; i++) ret |= dwc3_process_event_buf(dwc, i); - spin_unlock_irqrestore(&dwc->lock, flags); + spin_unlock(&dwc->lock); return ret; } |