aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-q.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/ehci-q.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/ehci-q.c')
-rw-r--r--drivers/usb/host/ehci-q.c4
1 files changed, 2 insertions, 2 deletions
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)) {