diff options
Diffstat (limited to 'drivers/usb/host/ohci-q.c')
-rw-r--r-- | drivers/usb/host/ohci-q.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-q.c b/drivers/usb/host/ohci-q.c index dd24fc115e48..15dc51ded61a 100644 --- a/drivers/usb/host/ohci-q.c +++ b/drivers/usb/host/ohci-q.c | |||
@@ -428,7 +428,7 @@ static struct ed *ed_get ( | |||
428 | ed->type = usb_pipetype(pipe); | 428 | ed->type = usb_pipetype(pipe); |
429 | 429 | ||
430 | info |= (ep->desc.bEndpointAddress & ~USB_DIR_IN) << 7; | 430 | info |= (ep->desc.bEndpointAddress & ~USB_DIR_IN) << 7; |
431 | info |= le16_to_cpu(ep->desc.wMaxPacketSize) << 16; | 431 | info |= usb_endpoint_maxp(&ep->desc) << 16; |
432 | if (udev->speed == USB_SPEED_LOW) | 432 | if (udev->speed == USB_SPEED_LOW) |
433 | info |= ED_LOWSPEED; | 433 | info |= ED_LOWSPEED; |
434 | /* only control transfers store pids in tds */ | 434 | /* only control transfers store pids in tds */ |
@@ -444,7 +444,7 @@ static struct ed *ed_get ( | |||
444 | ed->load = usb_calc_bus_time ( | 444 | ed->load = usb_calc_bus_time ( |
445 | udev->speed, !is_out, | 445 | udev->speed, !is_out, |
446 | ed->type == PIPE_ISOCHRONOUS, | 446 | ed->type == PIPE_ISOCHRONOUS, |
447 | le16_to_cpu(ep->desc.wMaxPacketSize)) | 447 | usb_endpoint_maxp(&ep->desc)) |
448 | / 1000; | 448 | / 1000; |
449 | } | 449 | } |
450 | } | 450 | } |