diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-11-24 20:27:19 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-12 04:45:14 -0500 |
commit | 4b815932013c9f94f852df9d136dcd5c0008afe2 (patch) | |
tree | b01af4c364c68137abf8167df5c1a69efca95258 /drivers/usb/renesas_usbhs | |
parent | 7177aed44f515d949f587170e0e177ce17e74793 (diff) |
usb: renesas_usbhs: remove superfluous usbhs_lock from recip handler
recip handler will call various functions which are holding
usbhs_lock.
This patch removes superfluous usbhs_lock from recip handler
to escape double lock.
[ balbi@ti.com : brushed up commit log a bit ]
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r-- | drivers/usb/renesas_usbhs/mod_gadget.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index c307c8f5bd3a..9a9e36378e87 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c | |||
@@ -327,15 +327,8 @@ static int usbhsg_recip_run_handle(struct usbhs_priv *priv, | |||
327 | } | 327 | } |
328 | 328 | ||
329 | if (func) { | 329 | if (func) { |
330 | unsigned long flags; | ||
331 | |||
332 | dev_dbg(dev, "%s (pipe %d :%s)\n", handler->name, nth, msg); | 330 | dev_dbg(dev, "%s (pipe %d :%s)\n", handler->name, nth, msg); |
333 | |||
334 | /******************** spin lock ********************/ | ||
335 | usbhs_lock(priv, flags); | ||
336 | ret = func(priv, uep, ctrl); | 331 | ret = func(priv, uep, ctrl); |
337 | usbhs_unlock(priv, flags); | ||
338 | /******************** spin unlock ******************/ | ||
339 | } | 332 | } |
340 | 333 | ||
341 | usbhsg_recip_run_handle_end: | 334 | usbhsg_recip_run_handle_end: |