diff options
Diffstat (limited to 'drivers/usb/gadget/pch_udc.c')
-rw-r--r-- | drivers/usb/gadget/pch_udc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/pch_udc.c b/drivers/usb/gadget/pch_udc.c index 5048a0c07640..dd2313cce1d3 100644 --- a/drivers/usb/gadget/pch_udc.c +++ b/drivers/usb/gadget/pch_udc.c | |||
@@ -2693,7 +2693,7 @@ static int pch_udc_start(struct usb_gadget_driver *driver, | |||
2693 | struct pch_udc_dev *dev = pch_udc; | 2693 | struct pch_udc_dev *dev = pch_udc; |
2694 | int retval; | 2694 | int retval; |
2695 | 2695 | ||
2696 | if (!driver || (driver->speed == USB_SPEED_UNKNOWN) || !bind || | 2696 | if (!driver || (driver->max_speed == USB_SPEED_UNKNOWN) || !bind || |
2697 | !driver->setup || !driver->unbind || !driver->disconnect) { | 2697 | !driver->setup || !driver->unbind || !driver->disconnect) { |
2698 | dev_err(&dev->pdev->dev, | 2698 | dev_err(&dev->pdev->dev, |
2699 | "%s: invalid driver parameter\n", __func__); | 2699 | "%s: invalid driver parameter\n", __func__); |
@@ -2941,7 +2941,7 @@ static int pch_udc_probe(struct pci_dev *pdev, | |||
2941 | dev->gadget.dev.dma_mask = pdev->dev.dma_mask; | 2941 | dev->gadget.dev.dma_mask = pdev->dev.dma_mask; |
2942 | dev->gadget.dev.release = gadget_release; | 2942 | dev->gadget.dev.release = gadget_release; |
2943 | dev->gadget.name = KBUILD_MODNAME; | 2943 | dev->gadget.name = KBUILD_MODNAME; |
2944 | dev->gadget.is_dualspeed = 1; | 2944 | dev->gadget.max_speed = USB_SPEED_HIGH; |
2945 | 2945 | ||
2946 | retval = device_register(&dev->gadget.dev); | 2946 | retval = device_register(&dev->gadget.dev); |
2947 | if (retval) | 2947 | if (retval) |