USB: use usb_endpoint_maxp() instead of le16_to_cpu()
[deliverable/linux.git] / drivers / usb / gadget / pxa27x_udc.c
index 85b68c75dc9da57a82f183bcb90107f7a68a0980..d21455f457e21d095f504fa7211dc35c397e69b5 100644 (file)
@@ -1439,7 +1439,7 @@ static int pxa_ep_enable(struct usb_ep *_ep,
                return -EINVAL;
        }
 
-       if (ep->fifo_size < le16_to_cpu(desc->wMaxPacketSize)) {
+       if (ep->fifo_size < usb_endpoint_maxp(desc)) {
                ep_err(ep, "bad maxpacket\n");
                return -ERANGE;
        }
This page took 0.030189 seconds and 5 git commands to generate.