aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2014-10-20 10:21:48 -0400
committerWolfram Sang <wsa@the-dreams.de>2014-10-20 10:21:48 -0400
commit6d3f5f2d895b668ecade4a87d39c9c233b094b8d (patch)
treeaf169b85842850373921dc90bfbab4c4d20ac346 /drivers/usb
parente55a0137167f5ec61c2e91d05b38a7e7bf513095 (diff)
usb: gadget: udc: drop owner assignment from platform_drivers
A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/udc/at91_udc.c1
-rw-r--r--drivers/usb/gadget/udc/atmel_usba_udc.c1
-rw-r--r--drivers/usb/gadget/udc/bcm63xx_udc.c1
-rw-r--r--drivers/usb/gadget/udc/dummy_hcd.c2
-rw-r--r--drivers/usb/gadget/udc/fotg210-udc.c1
-rw-r--r--drivers/usb/gadget/udc/fsl_qe_udc.c1
-rw-r--r--drivers/usb/gadget/udc/fsl_udc_core.c1
-rw-r--r--drivers/usb/gadget/udc/fusb300_udc.c1
-rw-r--r--drivers/usb/gadget/udc/gr_udc.c1
-rw-r--r--drivers/usb/gadget/udc/lpc32xx_udc.c1
-rw-r--r--drivers/usb/gadget/udc/m66592-udc.c1
-rw-r--r--drivers/usb/gadget/udc/mv_u3d_core.c1
-rw-r--r--drivers/usb/gadget/udc/mv_udc_core.c1
-rw-r--r--drivers/usb/gadget/udc/net2272.c1
-rw-r--r--drivers/usb/gadget/udc/omap_udc.c1
-rw-r--r--drivers/usb/gadget/udc/pxa25x_udc.c1
-rw-r--r--drivers/usb/gadget/udc/pxa27x_udc.c1
-rw-r--r--drivers/usb/gadget/udc/s3c-hsudc.c1
-rw-r--r--drivers/usb/gadget/udc/s3c2410_udc.c1
19 files changed, 0 insertions, 20 deletions
diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/udc/at91_udc.c
index 9968f5331fe4..41f91b4922eb 100644
--- a/drivers/usb/gadget/udc/at91_udc.c
+++ b/drivers/usb/gadget/udc/at91_udc.c
@@ -1972,7 +1972,6 @@ static struct platform_driver at91_udc_driver = {
1972 .resume = at91udc_resume, 1972 .resume = at91udc_resume,
1973 .driver = { 1973 .driver = {
1974 .name = (char *) driver_name, 1974 .name = (char *) driver_name,
1975 .owner = THIS_MODULE,
1976 .of_match_table = of_match_ptr(at91_udc_dt_ids), 1975 .of_match_table = of_match_ptr(at91_udc_dt_ids),
1977 }, 1976 },
1978}; 1977};
diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c
index 1529926e20a0..4721989ce641 100644
--- a/drivers/usb/gadget/udc/atmel_usba_udc.c
+++ b/drivers/usb/gadget/udc/atmel_usba_udc.c
@@ -2120,7 +2120,6 @@ static struct platform_driver udc_driver = {
2120 .remove = __exit_p(usba_udc_remove), 2120 .remove = __exit_p(usba_udc_remove),
2121 .driver = { 2121 .driver = {
2122 .name = "atmel_usba_udc", 2122 .name = "atmel_usba_udc",
2123 .owner = THIS_MODULE,
2124 .of_match_table = of_match_ptr(atmel_udc_dt_ids), 2123 .of_match_table = of_match_ptr(atmel_udc_dt_ids),
2125 }, 2124 },
2126}; 2125};
diff --git a/drivers/usb/gadget/udc/bcm63xx_udc.c b/drivers/usb/gadget/udc/bcm63xx_udc.c
index 2235b8808700..55ed4a937ec5 100644
--- a/drivers/usb/gadget/udc/bcm63xx_udc.c
+++ b/drivers/usb/gadget/udc/bcm63xx_udc.c
@@ -2425,7 +2425,6 @@ static struct platform_driver bcm63xx_udc_driver = {
2425 .remove = bcm63xx_udc_remove, 2425 .remove = bcm63xx_udc_remove,
2426 .driver = { 2426 .driver = {
2427 .name = DRV_MODULE_NAME, 2427 .name = DRV_MODULE_NAME,
2428 .owner = THIS_MODULE,
2429 }, 2428 },
2430}; 2429};
2431module_platform_driver(bcm63xx_udc_driver); 2430module_platform_driver(bcm63xx_udc_driver);
diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c
index 81dc5959e36b..bd3fc0ed0f30 100644
--- a/drivers/usb/gadget/udc/dummy_hcd.c
+++ b/drivers/usb/gadget/udc/dummy_hcd.c
@@ -1042,7 +1042,6 @@ static struct platform_driver dummy_udc_driver = {
1042 .resume = dummy_udc_resume, 1042 .resume = dummy_udc_resume,
1043 .driver = { 1043 .driver = {
1044 .name = (char *) gadget_name, 1044 .name = (char *) gadget_name,
1045 .owner = THIS_MODULE,
1046 }, 1045 },
1047}; 1046};
1048 1047
@@ -2612,7 +2611,6 @@ static struct platform_driver dummy_hcd_driver = {
2612 .resume = dummy_hcd_resume, 2611 .resume = dummy_hcd_resume,
2613 .driver = { 2612 .driver = {
2614 .name = (char *) driver_name, 2613 .name = (char *) driver_name,
2615 .owner = THIS_MODULE,
2616 }, 2614 },
2617}; 2615};
2618 2616
diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c
index 1d315921bf34..9aaf485ceac6 100644
--- a/drivers/usb/gadget/udc/fotg210-udc.c
+++ b/drivers/usb/gadget/udc/fotg210-udc.c
@@ -1203,7 +1203,6 @@ err_alloc:
1203static struct platform_driver fotg210_driver = { 1203static struct platform_driver fotg210_driver = {
1204 .driver = { 1204 .driver = {
1205 .name = (char *)udc_name, 1205 .name = (char *)udc_name,
1206 .owner = THIS_MODULE,
1207 }, 1206 },
1208 .probe = fotg210_udc_probe, 1207 .probe = fotg210_udc_probe,
1209 .remove = fotg210_udc_remove, 1208 .remove = fotg210_udc_remove,
diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c
index dd18ea38e391..fd71ee712abd 100644
--- a/drivers/usb/gadget/udc/fsl_qe_udc.c
+++ b/drivers/usb/gadget/udc/fsl_qe_udc.c
@@ -2709,7 +2709,6 @@ MODULE_DEVICE_TABLE(of, qe_udc_match);
2709static struct platform_driver udc_driver = { 2709static struct platform_driver udc_driver = {
2710 .driver = { 2710 .driver = {
2711 .name = driver_name, 2711 .name = driver_name,
2712 .owner = THIS_MODULE,
2713 .of_match_table = qe_udc_match, 2712 .of_match_table = qe_udc_match,
2714 }, 2713 },
2715 .probe = qe_udc_probe, 2714 .probe = qe_udc_probe,
diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c
index c3620791a315..8e71c9ce3f9f 100644
--- a/drivers/usb/gadget/udc/fsl_udc_core.c
+++ b/drivers/usb/gadget/udc/fsl_udc_core.c
@@ -2669,7 +2669,6 @@ static struct platform_driver udc_driver = {
2669 .resume = fsl_udc_resume, 2669 .resume = fsl_udc_resume,
2670 .driver = { 2670 .driver = {
2671 .name = driver_name, 2671 .name = driver_name,
2672 .owner = THIS_MODULE,
2673 /* udc suspend/resume called from OTG driver */ 2672 /* udc suspend/resume called from OTG driver */
2674 .suspend = fsl_udc_otg_suspend, 2673 .suspend = fsl_udc_otg_suspend,
2675 .resume = fsl_udc_otg_resume, 2674 .resume = fsl_udc_otg_resume,
diff --git a/drivers/usb/gadget/udc/fusb300_udc.c b/drivers/usb/gadget/udc/fusb300_udc.c
index 8286df72add4..f2d2f55be851 100644
--- a/drivers/usb/gadget/udc/fusb300_udc.c
+++ b/drivers/usb/gadget/udc/fusb300_udc.c
@@ -1496,7 +1496,6 @@ static struct platform_driver fusb300_driver = {
1496 .remove = __exit_p(fusb300_remove), 1496 .remove = __exit_p(fusb300_remove),
1497 .driver = { 1497 .driver = {
1498 .name = (char *) udc_name, 1498 .name = (char *) udc_name,
1499 .owner = THIS_MODULE,
1500 }, 1499 },
1501}; 1500};
1502 1501
diff --git a/drivers/usb/gadget/udc/gr_udc.c b/drivers/usb/gadget/udc/gr_udc.c
index 1b3048a6a2a3..6902b04684e8 100644
--- a/drivers/usb/gadget/udc/gr_udc.c
+++ b/drivers/usb/gadget/udc/gr_udc.c
@@ -2262,7 +2262,6 @@ MODULE_DEVICE_TABLE(of, gr_match);
2262static struct platform_driver gr_driver = { 2262static struct platform_driver gr_driver = {
2263 .driver = { 2263 .driver = {
2264 .name = DRIVER_NAME, 2264 .name = DRIVER_NAME,
2265 .owner = THIS_MODULE,
2266 .of_match_table = gr_match, 2265 .of_match_table = gr_match,
2267 }, 2266 },
2268 .probe = gr_probe, 2267 .probe = gr_probe,
diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c
index feab0bac8fdc..28a35da3797f 100644
--- a/drivers/usb/gadget/udc/lpc32xx_udc.c
+++ b/drivers/usb/gadget/udc/lpc32xx_udc.c
@@ -3410,7 +3410,6 @@ static struct platform_driver lpc32xx_udc_driver = {
3410 .resume = lpc32xx_udc_resume, 3410 .resume = lpc32xx_udc_resume,
3411 .driver = { 3411 .driver = {
3412 .name = (char *) driver_name, 3412 .name = (char *) driver_name,
3413 .owner = THIS_MODULE,
3414 .of_match_table = of_match_ptr(lpc32xx_udc_of_match), 3413 .of_match_table = of_match_ptr(lpc32xx_udc_of_match),
3415 }, 3414 },
3416}; 3415};
diff --git a/drivers/usb/gadget/udc/m66592-udc.c b/drivers/usb/gadget/udc/m66592-udc.c
index 898565687a8c..36e1f7558dc9 100644
--- a/drivers/usb/gadget/udc/m66592-udc.c
+++ b/drivers/usb/gadget/udc/m66592-udc.c
@@ -1699,7 +1699,6 @@ static struct platform_driver m66592_driver = {
1699 .remove = __exit_p(m66592_remove), 1699 .remove = __exit_p(m66592_remove),
1700 .driver = { 1700 .driver = {
1701 .name = (char *) udc_name, 1701 .name = (char *) udc_name,
1702 .owner = THIS_MODULE,
1703 }, 1702 },
1704}; 1703};
1705 1704
diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c
index 046a1f808b0d..0e48fc2ef7f6 100644
--- a/drivers/usb/gadget/udc/mv_u3d_core.c
+++ b/drivers/usb/gadget/udc/mv_u3d_core.c
@@ -2053,7 +2053,6 @@ static struct platform_driver mv_u3d_driver = {
2053 .remove = mv_u3d_remove, 2053 .remove = mv_u3d_remove,
2054 .shutdown = mv_u3d_shutdown, 2054 .shutdown = mv_u3d_shutdown,
2055 .driver = { 2055 .driver = {
2056 .owner = THIS_MODULE,
2057 .name = "mv-u3d", 2056 .name = "mv-u3d",
2058 .pm = &mv_u3d_pm_ops, 2057 .pm = &mv_u3d_pm_ops,
2059 }, 2058 },
diff --git a/drivers/usb/gadget/udc/mv_udc_core.c b/drivers/usb/gadget/udc/mv_udc_core.c
index 3c5db80ae325..ffed7671cda7 100644
--- a/drivers/usb/gadget/udc/mv_udc_core.c
+++ b/drivers/usb/gadget/udc/mv_udc_core.c
@@ -2403,7 +2403,6 @@ static struct platform_driver udc_driver = {
2403 .remove = mv_udc_remove, 2403 .remove = mv_udc_remove,
2404 .shutdown = mv_udc_shutdown, 2404 .shutdown = mv_udc_shutdown,
2405 .driver = { 2405 .driver = {
2406 .owner = THIS_MODULE,
2407 .name = "mv-udc", 2406 .name = "mv-udc",
2408#ifdef CONFIG_PM 2407#ifdef CONFIG_PM
2409 .pm = &mv_udc_pm_ops, 2408 .pm = &mv_udc_pm_ops,
diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c
index 84d7162a8022..c12c29d770de 100644
--- a/drivers/usb/gadget/udc/net2272.c
+++ b/drivers/usb/gadget/udc/net2272.c
@@ -2674,7 +2674,6 @@ static struct platform_driver net2272_plat_driver = {
2674 .remove = net2272_plat_remove, 2674 .remove = net2272_plat_remove,
2675 .driver = { 2675 .driver = {
2676 .name = driver_name, 2676 .name = driver_name,
2677 .owner = THIS_MODULE,
2678 }, 2677 },
2679 /* FIXME .suspend, .resume */ 2678 /* FIXME .suspend, .resume */
2680}; 2679};
diff --git a/drivers/usb/gadget/udc/omap_udc.c b/drivers/usb/gadget/udc/omap_udc.c
index dcdfea46003b..81a9aa3a3b2f 100644
--- a/drivers/usb/gadget/udc/omap_udc.c
+++ b/drivers/usb/gadget/udc/omap_udc.c
@@ -3026,7 +3026,6 @@ static struct platform_driver udc_driver = {
3026 .suspend = omap_udc_suspend, 3026 .suspend = omap_udc_suspend,
3027 .resume = omap_udc_resume, 3027 .resume = omap_udc_resume,
3028 .driver = { 3028 .driver = {
3029 .owner = THIS_MODULE,
3030 .name = (char *) driver_name, 3029 .name = (char *) driver_name,
3031 }, 3030 },
3032}; 3031};
diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c b/drivers/usb/gadget/udc/pxa25x_udc.c
index 42f7eeb8ff6f..42274f82e233 100644
--- a/drivers/usb/gadget/udc/pxa25x_udc.c
+++ b/drivers/usb/gadget/udc/pxa25x_udc.c
@@ -2271,7 +2271,6 @@ static struct platform_driver udc_driver = {
2271 .suspend = pxa25x_udc_suspend, 2271 .suspend = pxa25x_udc_suspend,
2272 .resume = pxa25x_udc_resume, 2272 .resume = pxa25x_udc_resume,
2273 .driver = { 2273 .driver = {
2274 .owner = THIS_MODULE,
2275 .name = "pxa25x-udc", 2274 .name = "pxa25x-udc",
2276 }, 2275 },
2277}; 2276};
diff --git a/drivers/usb/gadget/udc/pxa27x_udc.c b/drivers/usb/gadget/udc/pxa27x_udc.c
index 4868369eeec6..61bceedf515d 100644
--- a/drivers/usb/gadget/udc/pxa27x_udc.c
+++ b/drivers/usb/gadget/udc/pxa27x_udc.c
@@ -2614,7 +2614,6 @@ MODULE_ALIAS("platform:pxa27x-udc");
2614static struct platform_driver udc_driver = { 2614static struct platform_driver udc_driver = {
2615 .driver = { 2615 .driver = {
2616 .name = "pxa27x-udc", 2616 .name = "pxa27x-udc",
2617 .owner = THIS_MODULE,
2618 }, 2617 },
2619 .probe = pxa_udc_probe, 2618 .probe = pxa_udc_probe,
2620 .remove = pxa_udc_remove, 2619 .remove = pxa_udc_remove,
diff --git a/drivers/usb/gadget/udc/s3c-hsudc.c b/drivers/usb/gadget/udc/s3c-hsudc.c
index dfbf55797360..712e569bcbd9 100644
--- a/drivers/usb/gadget/udc/s3c-hsudc.c
+++ b/drivers/usb/gadget/udc/s3c-hsudc.c
@@ -1354,7 +1354,6 @@ err_supplies:
1354 1354
1355static struct platform_driver s3c_hsudc_driver = { 1355static struct platform_driver s3c_hsudc_driver = {
1356 .driver = { 1356 .driver = {
1357 .owner = THIS_MODULE,
1358 .name = "s3c-hsudc", 1357 .name = "s3c-hsudc",
1359 }, 1358 },
1360 .probe = s3c_hsudc_probe, 1359 .probe = s3c_hsudc_probe,
diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c
index ff423d15beff..306734608ed9 100644
--- a/drivers/usb/gadget/udc/s3c2410_udc.c
+++ b/drivers/usb/gadget/udc/s3c2410_udc.c
@@ -1997,7 +1997,6 @@ MODULE_DEVICE_TABLE(platform, s3c_udc_ids);
1997static struct platform_driver udc_driver_24x0 = { 1997static struct platform_driver udc_driver_24x0 = {
1998 .driver = { 1998 .driver = {
1999 .name = "s3c24x0-usbgadget", 1999 .name = "s3c24x0-usbgadget",
2000 .owner = THIS_MODULE,
2001 }, 2000 },
2002 .probe = s3c2410_udc_probe, 2001 .probe = s3c2410_udc_probe,
2003 .remove = s3c2410_udc_remove, 2002 .remove = s3c2410_udc_remove,