aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ehci-hcd.c1
-rw-r--r--drivers/usb/host/imx21-hcd.c4
-rw-r--r--drivers/usb/host/ohci-hcd.c1
-rw-r--r--drivers/usb/host/oxu210hp-hcd.c9
-rw-r--r--drivers/usb/host/pci-quirks.c2
-rw-r--r--drivers/usb/host/u132-hcd.c8
6 files changed, 4 insertions, 21 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 34a928d3b7d..ac0f7a4b034 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1080,7 +1080,6 @@ nogood:
1080 ep->hcpriv = NULL; 1080 ep->hcpriv = NULL;
1081done: 1081done:
1082 spin_unlock_irqrestore (&ehci->lock, flags); 1082 spin_unlock_irqrestore (&ehci->lock, flags);
1083 return;
1084} 1083}
1085 1084
1086static void 1085static void
diff --git a/drivers/usb/host/imx21-hcd.c b/drivers/usb/host/imx21-hcd.c
index 3e5630369c3..d0abb9b0e67 100644
--- a/drivers/usb/host/imx21-hcd.c
+++ b/drivers/usb/host/imx21-hcd.c
@@ -27,8 +27,8 @@
27 * * 32 transfer descriptors (called ETDs) 27 * * 32 transfer descriptors (called ETDs)
28 * * 4Kb of Data memory 28 * * 4Kb of Data memory
29 * 29 *
30 * The data memory is shared between the host and fuction controlers 30 * The data memory is shared between the host and function controllers
31 * (but this driver only supports the host controler) 31 * (but this driver only supports the host controller)
32 * 32 *
33 * So setting up a transfer involves: 33 * So setting up a transfer involves:
34 * * Allocating a ETD 34 * * Allocating a ETD
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index c3b4ccc7337..15ae39d6cc2 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -370,7 +370,6 @@ sanitize:
370 } 370 }
371 ep->hcpriv = NULL; 371 ep->hcpriv = NULL;
372 spin_unlock_irqrestore (&ohci->lock, flags); 372 spin_unlock_irqrestore (&ohci->lock, flags);
373 return;
374} 373}
375 374
376static int ohci_get_frame (struct usb_hcd *hcd) 375static int ohci_get_frame (struct usb_hcd *hcd)
diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c
index d9c85a29273..8026dc85996 100644
--- a/drivers/usb/host/oxu210hp-hcd.c
+++ b/drivers/usb/host/oxu210hp-hcd.c
@@ -544,8 +544,6 @@ static void oxu_buf_free(struct oxu_hcd *oxu, struct ehci_qtd *qtd)
544 qtd->buffer = NULL; 544 qtd->buffer = NULL;
545 545
546 spin_unlock(&oxu->mem_lock); 546 spin_unlock(&oxu->mem_lock);
547
548 return;
549} 547}
550 548
551static inline void ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma) 549static inline void ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma)
@@ -571,8 +569,6 @@ static inline void oxu_qtd_free(struct oxu_hcd *oxu, struct ehci_qtd *qtd)
571 oxu->qtd_used[index] = 0; 569 oxu->qtd_used[index] = 0;
572 570
573 spin_unlock(&oxu->mem_lock); 571 spin_unlock(&oxu->mem_lock);
574
575 return;
576} 572}
577 573
578static struct ehci_qtd *ehci_qtd_alloc(struct oxu_hcd *oxu) 574static struct ehci_qtd *ehci_qtd_alloc(struct oxu_hcd *oxu)
@@ -615,8 +611,6 @@ static void oxu_qh_free(struct oxu_hcd *oxu, struct ehci_qh *qh)
615 oxu->qh_used[index] = 0; 611 oxu->qh_used[index] = 0;
616 612
617 spin_unlock(&oxu->mem_lock); 613 spin_unlock(&oxu->mem_lock);
618
619 return;
620} 614}
621 615
622static void qh_destroy(struct kref *kref) 616static void qh_destroy(struct kref *kref)
@@ -693,8 +687,6 @@ static void oxu_murb_free(struct oxu_hcd *oxu, struct oxu_murb *murb)
693 oxu->murb_used[index] = 0; 687 oxu->murb_used[index] = 0;
694 688
695 spin_unlock(&oxu->mem_lock); 689 spin_unlock(&oxu->mem_lock);
696
697 return;
698} 690}
699 691
700static struct oxu_murb *oxu_murb_alloc(struct oxu_hcd *oxu) 692static struct oxu_murb *oxu_murb_alloc(struct oxu_hcd *oxu)
@@ -3070,7 +3062,6 @@ nogood:
3070 ep->hcpriv = NULL; 3062 ep->hcpriv = NULL;
3071done: 3063done:
3072 spin_unlock_irqrestore(&oxu->lock, flags); 3064 spin_unlock_irqrestore(&oxu->lock, flags);
3073 return;
3074} 3065}
3075 3066
3076static int oxu_get_frame(struct usb_hcd *hcd) 3067static int oxu_get_frame(struct usb_hcd *hcd)
diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c
index 83b5f9cea85..5b37b08e0d8 100644
--- a/drivers/usb/host/pci-quirks.c
+++ b/drivers/usb/host/pci-quirks.c
@@ -338,8 +338,6 @@ static void __devinit quirk_usb_disable_ehci(struct pci_dev *pdev)
338 writel(0x3f, op_reg_base + EHCI_USBSTS); 338 writel(0x3f, op_reg_base + EHCI_USBSTS);
339 339
340 iounmap(base); 340 iounmap(base);
341
342 return;
343} 341}
344 342
345/* 343/*
diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c
index 5b31bae92db..fab764946c7 100644
--- a/drivers/usb/host/u132-hcd.c
+++ b/drivers/usb/host/u132-hcd.c
@@ -316,7 +316,6 @@ static void u132_ring_requeue_work(struct u132 *u132, struct u132_ring *ring,
316 } else if (queue_delayed_work(workqueue, &ring->scheduler, 0)) 316 } else if (queue_delayed_work(workqueue, &ring->scheduler, 0))
317 return; 317 return;
318 kref_put(&u132->kref, u132_hcd_delete); 318 kref_put(&u132->kref, u132_hcd_delete);
319 return;
320} 319}
321 320
322static void u132_ring_queue_work(struct u132 *u132, struct u132_ring *ring, 321static void u132_ring_queue_work(struct u132 *u132, struct u132_ring *ring,
@@ -324,7 +323,6 @@ static void u132_ring_queue_work(struct u132 *u132, struct u132_ring *ring,
324{ 323{
325 kref_get(&u132->kref); 324 kref_get(&u132->kref);
326 u132_ring_requeue_work(u132, ring, delta); 325 u132_ring_requeue_work(u132, ring, delta);
327 return;
328} 326}
329 327
330static void u132_ring_cancel_work(struct u132 *u132, struct u132_ring *ring) 328static void u132_ring_cancel_work(struct u132 *u132, struct u132_ring *ring)
@@ -543,7 +541,6 @@ static void u132_hcd_giveback_urb(struct u132 *u132, struct u132_endp *endp,
543 mutex_unlock(&u132->scheduler_lock); 541 mutex_unlock(&u132->scheduler_lock);
544 u132_endp_put_kref(u132, endp); 542 u132_endp_put_kref(u132, endp);
545 usb_hcd_giveback_urb(hcd, urb, status); 543 usb_hcd_giveback_urb(hcd, urb, status);
546 return;
547} 544}
548 545
549static void u132_hcd_forget_urb(struct u132 *u132, struct u132_endp *endp, 546static void u132_hcd_forget_urb(struct u132 *u132, struct u132_endp *endp,
@@ -574,8 +571,8 @@ static void u132_hcd_abandon_urb(struct u132 *u132, struct u132_endp *endp,
574 endp->active = 0; 571 endp->active = 0;
575 spin_unlock_irqrestore(&endp->queue_lock.slock, irqs); 572 spin_unlock_irqrestore(&endp->queue_lock.slock, irqs);
576 kfree(urbq); 573 kfree(urbq);
577 } usb_hcd_giveback_urb(hcd, urb, status); 574 }
578 return; 575 usb_hcd_giveback_urb(hcd, urb, status);
579} 576}
580 577
581static inline int edset_input(struct u132 *u132, struct u132_ring *ring, 578static inline int edset_input(struct u132 *u132, struct u132_ring *ring,
@@ -3085,7 +3082,6 @@ static void u132_initialise(struct u132 *u132, struct platform_device *pdev)
3085 u132->endp[endps] = NULL; 3082 u132->endp[endps] = NULL;
3086 3083
3087 mutex_unlock(&u132->sw_lock); 3084 mutex_unlock(&u132->sw_lock);
3088 return;
3089} 3085}
3090 3086
3091static int __devinit u132_probe(struct platform_device *pdev) 3087static int __devinit u132_probe(struct platform_device *pdev)