X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=drivers%2Fusb%2Fgadget%2Fs3c2410_udc.c;h=2572854486781665ee12c485f46c5b0d00ee65de;hb=29cc88979a8818cd8c5019426e945aed118b400e;hp=85c1b0d66293c72fe1577ea506faeb1b7cfb1d41;hpb=a5d5a914770a81a1f775be2ee35b9fa8fd19d381;p=linux-2.6-block.git diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c index 85c1b0d66293..257285448678 100644 --- a/drivers/usb/gadget/s3c2410_udc.c +++ b/drivers/usb/gadget/s3c2410_udc.c @@ -1082,7 +1082,7 @@ static int s3c2410_udc_ep_enable(struct usb_ep *_ep, if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN) return -ESHUTDOWN; - max = le16_to_cpu(desc->wMaxPacketSize) & 0x1fff; + max = usb_endpoint_maxp(desc) & 0x1fff; local_irq_save (flags); _ep->maxpacket = max & 0x7ff; @@ -2060,6 +2060,7 @@ static int s3c2410_udc_resume(struct platform_device *pdev) static const struct platform_device_id s3c_udc_ids[] = { { "s3c2410-usbgadget", }, { "s3c2440-usbgadget", }, + { } }; MODULE_DEVICE_TABLE(platform, s3c_udc_ids);