diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-06-06 01:18:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-07 12:10:08 -0400 |
commit | 8a2c225ddb2d23a9b3f70af2ec70d28e4abd0b8e (patch) | |
tree | 4bea6390bd7232f67ebbf0d75e51e76f6090aefa /drivers/usb | |
parent | dad67397f2090b29cd1f169e6a4ac6f3532c6858 (diff) |
usb: renesas_usbhs: remove usbhsg_queue_get
usbhsg_queue_get is no longer needed.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/renesas_usbhs/mod_gadget.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 50c7566369eb..28b2b37f9661 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c | |||
@@ -168,20 +168,6 @@ static void usbhsg_queue_push(struct usbhsg_uep *uep, | |||
168 | req->length); | 168 | req->length); |
169 | } | 169 | } |
170 | 170 | ||
171 | static struct usbhsg_request *usbhsg_queue_get(struct usbhsg_uep *uep) | ||
172 | { | ||
173 | struct usbhs_pipe *pipe = usbhsg_uep_to_pipe(uep); | ||
174 | struct usbhs_pkt *pkt = usbhs_pkt_get(pipe); | ||
175 | |||
176 | /* | ||
177 | ********* assume under spin lock ********* | ||
178 | */ | ||
179 | if (!pkt) | ||
180 | return 0; | ||
181 | |||
182 | return usbhsg_pkt_to_ureq(pkt); | ||
183 | } | ||
184 | |||
185 | static int usbhsg_queue_start(struct usbhsg_uep *uep) | 171 | static int usbhsg_queue_start(struct usbhsg_uep *uep) |
186 | { | 172 | { |
187 | struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep); | 173 | struct usbhsg_gpriv *gpriv = usbhsg_uep_to_gpriv(uep); |
@@ -483,7 +469,7 @@ static int usbhsg_dcp_enable(struct usbhsg_uep *uep) | |||
483 | static int usbhsg_pipe_disable(struct usbhsg_uep *uep) | 469 | static int usbhsg_pipe_disable(struct usbhsg_uep *uep) |
484 | { | 470 | { |
485 | struct usbhs_pipe *pipe = usbhsg_uep_to_pipe(uep); | 471 | struct usbhs_pipe *pipe = usbhsg_uep_to_pipe(uep); |
486 | struct usbhsg_request *ureq; | 472 | struct usbhs_pkt *pkt; |
487 | 473 | ||
488 | /* | 474 | /* |
489 | ********* assume under spin lock ********* | 475 | ********* assume under spin lock ********* |
@@ -492,11 +478,11 @@ static int usbhsg_pipe_disable(struct usbhsg_uep *uep) | |||
492 | usbhs_pipe_disable(pipe); | 478 | usbhs_pipe_disable(pipe); |
493 | 479 | ||
494 | while (1) { | 480 | while (1) { |
495 | ureq = usbhsg_queue_get(uep); | 481 | pkt = usbhs_pkt_get(pipe); |
496 | if (!ureq) | 482 | if (!pkt) |
497 | break; | 483 | break; |
498 | 484 | ||
499 | usbhsg_queue_pop(uep, ureq, -ECONNRESET); | 485 | usbhs_pkt_pop(pkt); |
500 | } | 486 | } |
501 | 487 | ||
502 | return 0; | 488 | return 0; |
@@ -690,7 +676,7 @@ static int __usbhsg_ep_set_halt_wedge(struct usb_ep *ep, int halt, int wedge) | |||
690 | 676 | ||
691 | /******************** spin lock ********************/ | 677 | /******************** spin lock ********************/ |
692 | lock = usbhsg_trylock(gpriv, &flags); | 678 | lock = usbhsg_trylock(gpriv, &flags); |
693 | if (!usbhsg_queue_get(uep)) { | 679 | if (!usbhs_pkt_get(pipe)) { |
694 | 680 | ||
695 | dev_dbg(dev, "set halt %d (pipe %d)\n", | 681 | dev_dbg(dev, "set halt %d (pipe %d)\n", |
696 | halt, usbhs_pipe_number(pipe)); | 682 | halt, usbhs_pipe_number(pipe)); |