aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/r8a66597-hcd.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2008-04-28 02:00:16 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 13:03:31 -0400
commitfd05e720099e8eeddb378305d1a41c1445344b91 (patch)
treed617918be290b47b35822bc3cf21c8f01dde5dd2 /drivers/usb/host/r8a66597-hcd.c
parent01d7b369887b6feb7c9ce2b20988fafe3f70841c (diff)
drivers/usb annotations and fixes
* endianness annotations * endianness fixes * missing get_unaligned/put_unaligned It's pretty much all over the place, changes to different files are independent. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Serial-parts-Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb/host/r8a66597-hcd.c')
-rw-r--r--drivers/usb/host/r8a66597-hcd.c6
1 files changed, 3 insertions, 3 deletions
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)