]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/gadget/pxa27x_udc.c
usb: ci_udc: respect CONFIG_USB_GADGET_DUALSPEED
[u-boot] / drivers / usb / gadget / pxa27x_udc.c
index 733558def7d0659e2047453b74372588aba73e9f..efd5c7fda146177cb521dd819fcae332679a60bb 100644 (file)
@@ -65,7 +65,7 @@ static int udc_write_urb(struct usb_endpoint_instance *endpoint)
        if (!urb || !urb->actual_length)
                return -1;
 
-       n = MIN(urb->actual_length - endpoint->sent, endpoint->tx_packetSize);
+       n = min(urb->actual_length - endpoint->sent, endpoint->tx_packetSize);
        if (n <= 0)
                return -1;