USB: EHCI: fix sparse errors
This patch fixes several sparse errors in ehci-hcd introduced by
commit 3d091a6f70
(USB: EHCI: AMD periodic frame list table quirk).
Although the problem fixed by that commit affects only little-endian
systems, the source code has to use types appropriate for big-endian
too.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
5d8f681f3d
commit
4a71f242e5
@@ -224,11 +224,11 @@ static int ehci_mem_init (struct ehci_hcd *ehci, gfp_t flags)
|
||||
hw->hw_next = EHCI_LIST_END(ehci);
|
||||
hw->hw_qtd_next = EHCI_LIST_END(ehci);
|
||||
hw->hw_alt_next = EHCI_LIST_END(ehci);
|
||||
hw->hw_token &= ~QTD_STS_ACTIVE;
|
||||
ehci->dummy->hw = hw;
|
||||
|
||||
for (i = 0; i < ehci->periodic_size; i++)
|
||||
ehci->periodic[i] = ehci->dummy->qh_dma;
|
||||
ehci->periodic[i] = cpu_to_hc32(ehci,
|
||||
ehci->dummy->qh_dma);
|
||||
} else {
|
||||
for (i = 0; i < ehci->periodic_size; i++)
|
||||
ehci->periodic[i] = EHCI_LIST_END(ehci);
|
||||
|
Reference in New Issue
Block a user