diff options
Diffstat (limited to 'drivers/usb/host/uhci-q.c')
-rw-r--r-- | drivers/usb/host/uhci-q.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/host/uhci-q.c b/drivers/usb/host/uhci-q.c index 84ed28b34f93..f6ca80ee4cec 100644 --- a/drivers/usb/host/uhci-q.c +++ b/drivers/usb/host/uhci-q.c | |||
@@ -280,7 +280,7 @@ static struct uhci_qh *uhci_alloc_qh(struct uhci_hcd *uhci, | |||
280 | qh->load = usb_calc_bus_time(udev->speed, | 280 | qh->load = usb_calc_bus_time(udev->speed, |
281 | usb_endpoint_dir_in(&hep->desc), | 281 | usb_endpoint_dir_in(&hep->desc), |
282 | qh->type == USB_ENDPOINT_XFER_ISOC, | 282 | qh->type == USB_ENDPOINT_XFER_ISOC, |
283 | le16_to_cpu(hep->desc.wMaxPacketSize)) | 283 | usb_endpoint_maxp(&hep->desc)) |
284 | / 1000 + 1; | 284 | / 1000 + 1; |
285 | 285 | ||
286 | } else { /* Skeleton QH */ | 286 | } else { /* Skeleton QH */ |
@@ -792,7 +792,7 @@ static int uhci_submit_control(struct uhci_hcd *uhci, struct urb *urb, | |||
792 | { | 792 | { |
793 | struct uhci_td *td; | 793 | struct uhci_td *td; |
794 | unsigned long destination, status; | 794 | unsigned long destination, status; |
795 | int maxsze = le16_to_cpu(qh->hep->desc.wMaxPacketSize); | 795 | int maxsze = usb_endpoint_maxp(&qh->hep->desc); |
796 | int len = urb->transfer_buffer_length; | 796 | int len = urb->transfer_buffer_length; |
797 | dma_addr_t data = urb->transfer_dma; | 797 | dma_addr_t data = urb->transfer_dma; |
798 | __hc32 *plink; | 798 | __hc32 *plink; |
@@ -918,7 +918,7 @@ static int uhci_submit_common(struct uhci_hcd *uhci, struct urb *urb, | |||
918 | { | 918 | { |
919 | struct uhci_td *td; | 919 | struct uhci_td *td; |
920 | unsigned long destination, status; | 920 | unsigned long destination, status; |
921 | int maxsze = le16_to_cpu(qh->hep->desc.wMaxPacketSize); | 921 | int maxsze = usb_endpoint_maxp(&qh->hep->desc); |
922 | int len = urb->transfer_buffer_length; | 922 | int len = urb->transfer_buffer_length; |
923 | int this_sg_len; | 923 | int this_sg_len; |
924 | dma_addr_t data; | 924 | dma_addr_t data; |