diff options
Diffstat (limited to 'drivers/usb/gadget/s3c-hsotg.c')
-rw-r--r-- | drivers/usb/gadget/s3c-hsotg.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index b31448229f0b..69295ba9d99a 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c | |||
@@ -2586,7 +2586,7 @@ static int s3c_hsotg_start(struct usb_gadget_driver *driver, | |||
2586 | return -EINVAL; | 2586 | return -EINVAL; |
2587 | } | 2587 | } |
2588 | 2588 | ||
2589 | if (driver->speed < USB_SPEED_FULL) | 2589 | if (driver->max_speed < USB_SPEED_FULL) |
2590 | dev_err(hsotg->dev, "%s: bad speed\n", __func__); | 2590 | dev_err(hsotg->dev, "%s: bad speed\n", __func__); |
2591 | 2591 | ||
2592 | if (!bind || !driver->setup) { | 2592 | if (!bind || !driver->setup) { |
@@ -3362,7 +3362,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev) | |||
3362 | 3362 | ||
3363 | dev_set_name(&hsotg->gadget.dev, "gadget"); | 3363 | dev_set_name(&hsotg->gadget.dev, "gadget"); |
3364 | 3364 | ||
3365 | hsotg->gadget.is_dualspeed = 1; | 3365 | hsotg->gadget.max_speed = USB_SPEED_HIGH; |
3366 | hsotg->gadget.ops = &s3c_hsotg_gadget_ops; | 3366 | hsotg->gadget.ops = &s3c_hsotg_gadget_ops; |
3367 | hsotg->gadget.name = dev_name(dev); | 3367 | hsotg->gadget.name = dev_name(dev); |
3368 | 3368 | ||
@@ -3467,18 +3467,7 @@ static struct platform_driver s3c_hsotg_driver = { | |||
3467 | .resume = s3c_hsotg_resume, | 3467 | .resume = s3c_hsotg_resume, |
3468 | }; | 3468 | }; |
3469 | 3469 | ||
3470 | static int __init s3c_hsotg_modinit(void) | 3470 | module_platform_driver(s3c_hsotg_driver); |
3471 | { | ||
3472 | return platform_driver_register(&s3c_hsotg_driver); | ||
3473 | } | ||
3474 | |||
3475 | static void __exit s3c_hsotg_modexit(void) | ||
3476 | { | ||
3477 | platform_driver_unregister(&s3c_hsotg_driver); | ||
3478 | } | ||
3479 | |||
3480 | module_init(s3c_hsotg_modinit); | ||
3481 | module_exit(s3c_hsotg_modexit); | ||
3482 | 3471 | ||
3483 | MODULE_DESCRIPTION("Samsung S3C USB High-speed/OtG device"); | 3472 | MODULE_DESCRIPTION("Samsung S3C USB High-speed/OtG device"); |
3484 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); | 3473 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); |