usb: gadget: renesas_usbhs: cleanup complicated ureq alloc/free
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 31 Oct 2011 07:46:50 +0000 (00:46 -0700)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:45:01 +0000 (11:45 +0200)
commitee8a0bf5a775098b1140195b6bfacb4813166e5f
tree18853a11061f13f4aeabbbaeb5ad88470fae5307
parent1ab6f257e12a89f62f58fcef9f7b85badce412bc
usb: gadget: renesas_usbhs: cleanup complicated ureq alloc/free

DCP data/status stage needs ureq to usbhs_pkt_push(),
but sometimes, there is no data stage.
In that case, allocated ureq was not freed,
Current ureq alloc/free pair were difficult to understand.
This patch removed unnecessary/un-understandable ureq alloc
from usbhsh_urb_enqueue(), and create simpler alloc/free pair.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod_host.c