]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/usb/gadget/at91_udc.c
Merge tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[~shefty/rdma-dev.git] / drivers / usb / gadget / at91_udc.c
index 1ed56d8492d7366adc965d99800a85e58bc6bbe7..143a7256b5984dd58d81c7b7c2463f272fbdd8a2 100644 (file)
@@ -1633,7 +1633,7 @@ static int at91_start(struct usb_gadget_driver *driver,
        unsigned long   flags;
 
        if (!driver
-                       || driver->speed < USB_SPEED_FULL
+                       || driver->max_speed < USB_SPEED_FULL
                        || !bind
                        || !driver->setup) {
                DBG("bad parameter.\n");