aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/musb/musb_core.c4
-rw-r--r--drivers/usb/musb/musb_host.c8
-rw-r--r--drivers/usb/musb/musb_host.h2
-rw-r--r--drivers/usb/musb/musb_virthub.c6
-rw-r--r--drivers/usb/musb/omap2430.c2
5 files changed, 10 insertions, 12 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index a04cf8b1678b..29a24ced6748 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -388,7 +388,7 @@ static void musb_otg_timer_func(unsigned long data)
388 */ 388 */
389void musb_hnp_stop(struct musb *musb) 389void musb_hnp_stop(struct musb *musb)
390{ 390{
391 struct usb_hcd *hcd = musb_to_hcd(musb); 391 struct usb_hcd *hcd = musb->hcd;
392 void __iomem *mbase = musb->mregs; 392 void __iomem *mbase = musb->mregs;
393 u8 reg; 393 u8 reg;
394 394
@@ -685,7 +685,7 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
685 } 685 }
686 686
687 if (int_usb & MUSB_INTR_CONNECT) { 687 if (int_usb & MUSB_INTR_CONNECT) {
688 struct usb_hcd *hcd = musb_to_hcd(musb); 688 struct usb_hcd *hcd = musb->hcd;
689 689
690 handled = IRQ_HANDLED; 690 handled = IRQ_HANDLED;
691 musb->is_active = 1; 691 musb->is_active = 1;
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 6057c2363e86..f15d114572d5 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -315,9 +315,9 @@ __acquires(musb->lock)
315 urb->actual_length, urb->transfer_buffer_length 315 urb->actual_length, urb->transfer_buffer_length
316 ); 316 );
317 317
318 usb_hcd_unlink_urb_from_ep(musb_to_hcd(musb), urb); 318 usb_hcd_unlink_urb_from_ep(musb->hcd, urb);
319 spin_unlock(&musb->lock); 319 spin_unlock(&musb->lock);
320 usb_hcd_giveback_urb(musb_to_hcd(musb), urb, status); 320 usb_hcd_giveback_urb(musb->hcd, urb, status);
321 spin_lock(&musb->lock); 321 spin_lock(&musb->lock);
322} 322}
323 323
@@ -1460,7 +1460,7 @@ done:
1460 if (length > qh->maxpacket) 1460 if (length > qh->maxpacket)
1461 length = qh->maxpacket; 1461 length = qh->maxpacket;
1462 /* Unmap the buffer so that CPU can use it */ 1462 /* Unmap the buffer so that CPU can use it */
1463 usb_hcd_unmap_urb_for_dma(musb_to_hcd(musb), urb); 1463 usb_hcd_unmap_urb_for_dma(musb->hcd, urb);
1464 1464
1465 /* 1465 /*
1466 * We need to map sg if the transfer_buffer is 1466 * We need to map sg if the transfer_buffer is
@@ -1875,7 +1875,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
1875 unsigned int received_len; 1875 unsigned int received_len;
1876 1876
1877 /* Unmap the buffer so that CPU can use it */ 1877 /* Unmap the buffer so that CPU can use it */
1878 usb_hcd_unmap_urb_for_dma(musb_to_hcd(musb), urb); 1878 usb_hcd_unmap_urb_for_dma(musb->hcd, urb);
1879 1879
1880 /* 1880 /*
1881 * We need to map sg if the transfer_buffer is 1881 * We need to map sg if the transfer_buffer is
diff --git a/drivers/usb/musb/musb_host.h b/drivers/usb/musb/musb_host.h
index 48a4bdd8b9f9..c202d5ba684b 100644
--- a/drivers/usb/musb/musb_host.h
+++ b/drivers/usb/musb/musb_host.h
@@ -37,8 +37,6 @@
37 37
38#include <linux/scatterlist.h> 38#include <linux/scatterlist.h>
39 39
40#define musb_to_hcd(MUSB) ((MUSB)->hcd)
41
42/* stored in "usb_host_endpoint.hcpriv" for scheduled endpoints */ 40/* stored in "usb_host_endpoint.hcpriv" for scheduled endpoints */
43struct musb_qh { 41struct musb_qh {
44 struct usb_host_endpoint *hep; /* usbcore info */ 42 struct usb_host_endpoint *hep; /* usbcore info */
diff --git a/drivers/usb/musb/musb_virthub.c b/drivers/usb/musb/musb_virthub.c
index 104d22f7142d..a523950c2b32 100644
--- a/drivers/usb/musb/musb_virthub.c
+++ b/drivers/usb/musb/musb_virthub.c
@@ -212,7 +212,7 @@ static void musb_port_reset(struct musb *musb, bool do_reset)
212 musb->port1_status |= USB_PORT_STAT_ENABLE 212 musb->port1_status |= USB_PORT_STAT_ENABLE
213 | (USB_PORT_STAT_C_RESET << 16) 213 | (USB_PORT_STAT_C_RESET << 16)
214 | (USB_PORT_STAT_C_ENABLE << 16); 214 | (USB_PORT_STAT_C_ENABLE << 16);
215 usb_hcd_poll_rh_status(musb_to_hcd(musb)); 215 usb_hcd_poll_rh_status(musb->hcd);
216 216
217 musb->vbuserr_retry = VBUSERR_RETRY_COUNT; 217 musb->vbuserr_retry = VBUSERR_RETRY_COUNT;
218 } 218 }
@@ -225,7 +225,7 @@ void musb_root_disconnect(struct musb *musb)
225 musb->port1_status = USB_PORT_STAT_POWER 225 musb->port1_status = USB_PORT_STAT_POWER
226 | (USB_PORT_STAT_C_CONNECTION << 16); 226 | (USB_PORT_STAT_C_CONNECTION << 16);
227 227
228 usb_hcd_poll_rh_status(musb_to_hcd(musb)); 228 usb_hcd_poll_rh_status(musb->hcd);
229 musb->is_active = 0; 229 musb->is_active = 0;
230 230
231 switch (musb->xceiv->state) { 231 switch (musb->xceiv->state) {
@@ -379,7 +379,7 @@ int musb_hub_control(
379 musb->port1_status &= ~(USB_PORT_STAT_SUSPEND 379 musb->port1_status &= ~(USB_PORT_STAT_SUSPEND
380 | MUSB_PORT_STAT_RESUME); 380 | MUSB_PORT_STAT_RESUME);
381 musb->port1_status |= USB_PORT_STAT_C_SUSPEND << 16; 381 musb->port1_status |= USB_PORT_STAT_C_SUSPEND << 16;
382 usb_hcd_poll_rh_status(musb_to_hcd(musb)); 382 usb_hcd_poll_rh_status(musb->hcd);
383 /* NOTE: it might really be A_WAIT_BCON ... */ 383 /* NOTE: it might really be A_WAIT_BCON ... */
384 musb->xceiv->state = OTG_STATE_A_HOST; 384 musb->xceiv->state = OTG_STATE_A_HOST;
385 } 385 }
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index b3e77613e0af..c7c1d7ab5471 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -87,7 +87,7 @@ static void musb_do_idle(unsigned long _musb)
87 musb->port1_status &= ~(USB_PORT_STAT_SUSPEND 87 musb->port1_status &= ~(USB_PORT_STAT_SUSPEND
88 | MUSB_PORT_STAT_RESUME); 88 | MUSB_PORT_STAT_RESUME);
89 musb->port1_status |= USB_PORT_STAT_C_SUSPEND << 16; 89 musb->port1_status |= USB_PORT_STAT_C_SUSPEND << 16;
90 usb_hcd_poll_rh_status(musb_to_hcd(musb)); 90 usb_hcd_poll_rh_status(musb->hcd);
91 /* NOTE: it might really be A_WAIT_BCON ... */ 91 /* NOTE: it might really be A_WAIT_BCON ... */
92 musb->xceiv->state = OTG_STATE_A_HOST; 92 musb->xceiv->state = OTG_STATE_A_HOST;
93 } 93 }