aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ehci-dbg.c2
-rw-r--r--drivers/usb/host/ehci-hub.c2
-rw-r--r--drivers/usb/host/ehci-q.c4
-rw-r--r--drivers/usb/host/r8a66597-hcd.c6
-rw-r--r--drivers/usb/host/sl811-hcd.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c
index 4af90df8e7de..0f82fdcaef09 100644
--- a/drivers/usb/host/ehci-dbg.c
+++ b/drivers/usb/host/ehci-dbg.c
@@ -398,7 +398,7 @@ static void qh_lines (
398 unsigned size = *sizep; 398 unsigned size = *sizep;
399 char *next = *nextp; 399 char *next = *nextp;
400 char mark; 400 char mark;
401 u32 list_end = EHCI_LIST_END(ehci); 401 __le32 list_end = EHCI_LIST_END(ehci);
402 402
403 if (qh->hw_qtd_next == list_end) /* NEC does this */ 403 if (qh->hw_qtd_next == list_end) /* NEC does this */
404 mark = '@'; 404 mark = '@';
diff --git a/drivers/usb/host/ehci-hub.c b/drivers/usb/host/ehci-hub.c
index efffef64f59d..f13d1029aeb2 100644
--- a/drivers/usb/host/ehci-hub.c
+++ b/drivers/usb/host/ehci-hub.c
@@ -530,7 +530,7 @@ ehci_hub_descriptor (
530 if (HCS_INDICATOR (ehci->hcs_params)) 530 if (HCS_INDICATOR (ehci->hcs_params))
531 temp |= 0x0080; /* per-port indicators (LEDs) */ 531 temp |= 0x0080; /* per-port indicators (LEDs) */
532#endif 532#endif
533 desc->wHubCharacteristics = (__force __u16)cpu_to_le16 (temp); 533 desc->wHubCharacteristics = cpu_to_le16(temp);
534} 534}
535 535
536/*-------------------------------------------------------------------------*/ 536/*-------------------------------------------------------------------------*/
diff --git a/drivers/usb/host/ehci-q.c b/drivers/usb/host/ehci-q.c
index 5ae689139dd0..b85b54160cda 100644
--- a/drivers/usb/host/ehci-q.c
+++ b/drivers/usb/host/ehci-q.c
@@ -285,7 +285,7 @@ qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh)
285 int stopped; 285 int stopped;
286 unsigned count = 0; 286 unsigned count = 0;
287 u8 state; 287 u8 state;
288 u32 halt = HALT_BIT(ehci); 288 __le32 halt = HALT_BIT(ehci);
289 289
290 if (unlikely (list_empty (&qh->qtd_list))) 290 if (unlikely (list_empty (&qh->qtd_list)))
291 return count; 291 return count;
@@ -883,7 +883,7 @@ static struct ehci_qh *qh_append_tds (
883) 883)
884{ 884{
885 struct ehci_qh *qh = NULL; 885 struct ehci_qh *qh = NULL;
886 u32 qh_addr_mask = cpu_to_hc32(ehci, 0x7f); 886 __hc32 qh_addr_mask = cpu_to_hc32(ehci, 0x7f);
887 887
888 qh = (struct ehci_qh *) *ptr; 888 qh = (struct ehci_qh *) *ptr;
889 if (unlikely (qh == NULL)) { 889 if (unlikely (qh == NULL)) {
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index f4fa93dabdde..16667342b3c3 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -993,7 +993,7 @@ static void prepare_setup_packet(struct r8a66597 *r8a66597,
993 struct r8a66597_td *td) 993 struct r8a66597_td *td)
994{ 994{
995 int i; 995 int i;
996 u16 *p = (u16 *)td->urb->setup_packet; 996 __le16 *p = (__le16 *)td->urb->setup_packet;
997 unsigned long setup_addr = USBREQ; 997 unsigned long setup_addr = USBREQ;
998 998
999 r8a66597_write(r8a66597, make_devsel(td->address) | td->maxpacket, 999 r8a66597_write(r8a66597, make_devsel(td->address) | td->maxpacket,
@@ -1001,7 +1001,7 @@ static void prepare_setup_packet(struct r8a66597 *r8a66597,
1001 r8a66597_write(r8a66597, ~(SIGN | SACK), INTSTS1); 1001 r8a66597_write(r8a66597, ~(SIGN | SACK), INTSTS1);
1002 1002
1003 for (i = 0; i < 4; i++) { 1003 for (i = 0; i < 4; i++) {
1004 r8a66597_write(r8a66597, cpu_to_le16(p[i]), setup_addr); 1004 r8a66597_write(r8a66597, le16_to_cpu(p[i]), setup_addr);
1005 setup_addr += 2; 1005 setup_addr += 2;
1006 } 1006 }
1007 r8a66597_write(r8a66597, SUREQ, DCPCTR); 1007 r8a66597_write(r8a66597, SUREQ, DCPCTR);
@@ -2131,7 +2131,7 @@ static int r8a66597_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
2131 case GetPortStatus: 2131 case GetPortStatus:
2132 if (wIndex > R8A66597_MAX_ROOT_HUB) 2132 if (wIndex > R8A66597_MAX_ROOT_HUB)
2133 goto error; 2133 goto error;
2134 *(u32 *)buf = cpu_to_le32(rh->port); 2134 *(__le32 *)buf = cpu_to_le32(rh->port);
2135 break; 2135 break;
2136 case SetPortFeature: 2136 case SetPortFeature:
2137 if (wIndex > R8A66597_MAX_ROOT_HUB) 2137 if (wIndex > R8A66597_MAX_ROOT_HUB)
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index 274276cf8621..3fd7a0c12078 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -1100,7 +1100,7 @@ sl811h_hub_descriptor (
1100 /* no overcurrent errors detection/handling */ 1100 /* no overcurrent errors detection/handling */
1101 temp |= 0x0010; 1101 temp |= 0x0010;
1102 1102
1103 desc->wHubCharacteristics = (__force __u16)cpu_to_le16(temp); 1103 desc->wHubCharacteristics = cpu_to_le16(temp);
1104 1104
1105 /* two bitmaps: ports removable, and legacy PortPwrCtrlMask */ 1105 /* two bitmaps: ports removable, and legacy PortPwrCtrlMask */
1106 desc->bitmap[0] = 0 << 1; 1106 desc->bitmap[0] = 0 << 1;