xhci: correct burst count field for isoc transfers on 1.0 xhci hosts
[pandora-kernel.git] / drivers / usb / host / xhci-ring.c
index 1886544..bc5ee84 100644 (file)
@@ -3521,7 +3521,7 @@ static unsigned int xhci_get_burst_count(struct xhci_hcd *xhci,
                return 0;
 
        max_burst = urb->ep->ss_ep_comp.bMaxBurst;
                return 0;
 
        max_burst = urb->ep->ss_ep_comp.bMaxBurst;
-       return roundup(total_packet_count, max_burst + 1) - 1;
+       return DIV_ROUND_UP(total_packet_count, max_burst + 1) - 1;
 }
 
 /*
 }
 
 /*