aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/gadget/s3c2410_udc.c29
1 files changed, 9 insertions, 20 deletions
diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c
index 1c19cd3f6a57..394c1a3bbe83 100644
--- a/drivers/usb/gadget/s3c2410_udc.c
+++ b/drivers/usb/gadget/s3c2410_udc.c
@@ -2057,26 +2057,22 @@ static int s3c2410_udc_resume(struct platform_device *pdev)
2057#define s3c2410_udc_resume NULL 2057#define s3c2410_udc_resume NULL
2058#endif 2058#endif
2059 2059
2060static struct platform_driver udc_driver_2410 = { 2060static const struct platform_device_id s3c_udc_ids[] = {
2061 .driver = { 2061 { "s3c2410-usbgadget", },
2062 .name = "s3c2410-usbgadget", 2062 { "s3c2440-usbgadget", },
2063 .owner = THIS_MODULE,
2064 },
2065 .probe = s3c2410_udc_probe,
2066 .remove = s3c2410_udc_remove,
2067 .suspend = s3c2410_udc_suspend,
2068 .resume = s3c2410_udc_resume,
2069}; 2063};
2064MODULE_DEVICE_TABLE(platform, s3c_udc_ids);
2070 2065
2071static struct platform_driver udc_driver_2440 = { 2066static struct platform_driver udc_driver_24x0 = {
2072 .driver = { 2067 .driver = {
2073 .name = "s3c2440-usbgadget", 2068 .name = "s3c24x0-usbgadget",
2074 .owner = THIS_MODULE, 2069 .owner = THIS_MODULE,
2075 }, 2070 },
2076 .probe = s3c2410_udc_probe, 2071 .probe = s3c2410_udc_probe,
2077 .remove = s3c2410_udc_remove, 2072 .remove = s3c2410_udc_remove,
2078 .suspend = s3c2410_udc_suspend, 2073 .suspend = s3c2410_udc_suspend,
2079 .resume = s3c2410_udc_resume, 2074 .resume = s3c2410_udc_resume,
2075 .id_table = s3c_udc_ids,
2080}; 2076};
2081 2077
2082static int __init udc_init(void) 2078static int __init udc_init(void)
@@ -2092,11 +2088,7 @@ static int __init udc_init(void)
2092 s3c2410_udc_debugfs_root = NULL; 2088 s3c2410_udc_debugfs_root = NULL;
2093 } 2089 }
2094 2090
2095 retval = platform_driver_register(&udc_driver_2410); 2091 retval = platform_driver_register(&udc_driver_24x0);
2096 if (retval)
2097 goto err;
2098
2099 retval = platform_driver_register(&udc_driver_2440);
2100 if (retval) 2092 if (retval)
2101 goto err; 2093 goto err;
2102 2094
@@ -2109,8 +2101,7 @@ err:
2109 2101
2110static void __exit udc_exit(void) 2102static void __exit udc_exit(void)
2111{ 2103{
2112 platform_driver_unregister(&udc_driver_2410); 2104 platform_driver_unregister(&udc_driver_24x0);
2113 platform_driver_unregister(&udc_driver_2440);
2114 debugfs_remove(s3c2410_udc_debugfs_root); 2105 debugfs_remove(s3c2410_udc_debugfs_root);
2115} 2106}
2116 2107
@@ -2121,5 +2112,3 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
2121MODULE_DESCRIPTION(DRIVER_DESC); 2112MODULE_DESCRIPTION(DRIVER_DESC);
2122MODULE_VERSION(DRIVER_VERSION); 2113MODULE_VERSION(DRIVER_VERSION);
2123MODULE_LICENSE("GPL"); 2114MODULE_LICENSE("GPL");
2124MODULE_ALIAS("platform:s3c2410-usbgadget");
2125MODULE_ALIAS("platform:s3c2440-usbgadget");