diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-10-20 10:21:49 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-10-20 10:21:49 -0400 |
commit | 566e0269e58cb95aa759c3f11c831536ae3858d2 (patch) | |
tree | e212a11014a8a007d22d854396838ba481206ba9 /drivers/usb | |
parent | 6d3f5f2d895b668ecade4a87d39c9c233b094b8d (diff) |
usb: host: 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/host/ehci-exynos.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ehci-orion.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ehci-platform.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ehci-w90x900.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/fhci-hcd.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/fsl-mph-dr-of.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/isp116x-hcd.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/isp1362-hcd.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/isp1760-if.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-at91.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-exynos.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-nxp.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-omap.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-platform.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-pxa27x.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-s3c2410.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-spear.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/r8a66597-hcd.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/u132-hcd.c | 1 |
19 files changed, 0 insertions, 19 deletions
diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index 7189f2e32ac2..e1b4f58283ad 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c | |||
@@ -323,7 +323,6 @@ static struct platform_driver exynos_ehci_driver = { | |||
323 | .shutdown = usb_hcd_platform_shutdown, | 323 | .shutdown = usb_hcd_platform_shutdown, |
324 | .driver = { | 324 | .driver = { |
325 | .name = "exynos-ehci", | 325 | .name = "exynos-ehci", |
326 | .owner = THIS_MODULE, | ||
327 | .pm = &exynos_ehci_pm_ops, | 326 | .pm = &exynos_ehci_pm_ops, |
328 | .of_match_table = of_match_ptr(exynos_ehci_match), | 327 | .of_match_table = of_match_ptr(exynos_ehci_match), |
329 | } | 328 | } |
diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c index 22e15cab8ea5..ebd203ac3fad 100644 --- a/drivers/usb/host/ehci-orion.c +++ b/drivers/usb/host/ehci-orion.c | |||
@@ -321,7 +321,6 @@ static struct platform_driver ehci_orion_driver = { | |||
321 | .shutdown = usb_hcd_platform_shutdown, | 321 | .shutdown = usb_hcd_platform_shutdown, |
322 | .driver = { | 322 | .driver = { |
323 | .name = "orion-ehci", | 323 | .name = "orion-ehci", |
324 | .owner = THIS_MODULE, | ||
325 | .of_match_table = ehci_orion_dt_ids, | 324 | .of_match_table = ehci_orion_dt_ids, |
326 | }, | 325 | }, |
327 | }; | 326 | }; |
diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index 2f5b9ce3e042..bc6455c8b77a 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c | |||
@@ -379,7 +379,6 @@ static struct platform_driver ehci_platform_driver = { | |||
379 | .remove = ehci_platform_remove, | 379 | .remove = ehci_platform_remove, |
380 | .shutdown = usb_hcd_platform_shutdown, | 380 | .shutdown = usb_hcd_platform_shutdown, |
381 | .driver = { | 381 | .driver = { |
382 | .owner = THIS_MODULE, | ||
383 | .name = "ehci-platform", | 382 | .name = "ehci-platform", |
384 | .pm = &ehci_platform_pm_ops, | 383 | .pm = &ehci_platform_pm_ops, |
385 | .of_match_table = vt8500_ehci_ids, | 384 | .of_match_table = vt8500_ehci_ids, |
diff --git a/drivers/usb/host/ehci-w90x900.c b/drivers/usb/host/ehci-w90x900.c index a9303aff125e..eb7a5a83fa3d 100644 --- a/drivers/usb/host/ehci-w90x900.c +++ b/drivers/usb/host/ehci-w90x900.c | |||
@@ -126,7 +126,6 @@ static struct platform_driver ehci_hcd_w90x900_driver = { | |||
126 | .remove = ehci_w90x900_remove, | 126 | .remove = ehci_w90x900_remove, |
127 | .driver = { | 127 | .driver = { |
128 | .name = "w90x900-ehci", | 128 | .name = "w90x900-ehci", |
129 | .owner = THIS_MODULE, | ||
130 | }, | 129 | }, |
131 | }; | 130 | }; |
132 | 131 | ||
diff --git a/drivers/usb/host/fhci-hcd.c b/drivers/usb/host/fhci-hcd.c index a1a1ef521436..c6cebb96fd21 100644 --- a/drivers/usb/host/fhci-hcd.c +++ b/drivers/usb/host/fhci-hcd.c | |||
@@ -821,7 +821,6 @@ MODULE_DEVICE_TABLE(of, of_fhci_match); | |||
821 | static struct platform_driver of_fhci_driver = { | 821 | static struct platform_driver of_fhci_driver = { |
822 | .driver = { | 822 | .driver = { |
823 | .name = "fsl,usb-fhci", | 823 | .name = "fsl,usb-fhci", |
824 | .owner = THIS_MODULE, | ||
825 | .of_match_table = of_fhci_match, | 824 | .of_match_table = of_fhci_match, |
826 | }, | 825 | }, |
827 | .probe = of_fhci_probe, | 826 | .probe = of_fhci_probe, |
diff --git a/drivers/usb/host/fsl-mph-dr-of.c b/drivers/usb/host/fsl-mph-dr-of.c index 9162d1b6c0a3..7e325e90d7d9 100644 --- a/drivers/usb/host/fsl-mph-dr-of.c +++ b/drivers/usb/host/fsl-mph-dr-of.c | |||
@@ -326,7 +326,6 @@ static const struct of_device_id fsl_usb2_mph_dr_of_match[] = { | |||
326 | static struct platform_driver fsl_usb2_mph_dr_driver = { | 326 | static struct platform_driver fsl_usb2_mph_dr_driver = { |
327 | .driver = { | 327 | .driver = { |
328 | .name = "fsl-usb2-mph-dr", | 328 | .name = "fsl-usb2-mph-dr", |
329 | .owner = THIS_MODULE, | ||
330 | .of_match_table = fsl_usb2_mph_dr_of_match, | 329 | .of_match_table = fsl_usb2_mph_dr_of_match, |
331 | }, | 330 | }, |
332 | .probe = fsl_usb2_mph_dr_of_probe, | 331 | .probe = fsl_usb2_mph_dr_of_probe, |
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c index 240e792c81a7..31c9c4d0fa0b 100644 --- a/drivers/usb/host/isp116x-hcd.c +++ b/drivers/usb/host/isp116x-hcd.c | |||
@@ -1707,7 +1707,6 @@ static struct platform_driver isp116x_driver = { | |||
1707 | .resume = isp116x_resume, | 1707 | .resume = isp116x_resume, |
1708 | .driver = { | 1708 | .driver = { |
1709 | .name = hcd_name, | 1709 | .name = hcd_name, |
1710 | .owner = THIS_MODULE, | ||
1711 | }, | 1710 | }, |
1712 | }; | 1711 | }; |
1713 | 1712 | ||
diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c index 4bb37982855e..75e5876f9d7c 100644 --- a/drivers/usb/host/isp1362-hcd.c +++ b/drivers/usb/host/isp1362-hcd.c | |||
@@ -2778,7 +2778,6 @@ static struct platform_driver isp1362_driver = { | |||
2778 | .resume = isp1362_resume, | 2778 | .resume = isp1362_resume, |
2779 | .driver = { | 2779 | .driver = { |
2780 | .name = hcd_name, | 2780 | .name = hcd_name, |
2781 | .owner = THIS_MODULE, | ||
2782 | }, | 2781 | }, |
2783 | }; | 2782 | }; |
2784 | 2783 | ||
diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c index df931e9ba5b5..09254a43bc01 100644 --- a/drivers/usb/host/isp1760-if.c +++ b/drivers/usb/host/isp1760-if.c | |||
@@ -161,7 +161,6 @@ MODULE_DEVICE_TABLE(of, of_isp1760_match); | |||
161 | static struct platform_driver isp1760_of_driver = { | 161 | static struct platform_driver isp1760_of_driver = { |
162 | .driver = { | 162 | .driver = { |
163 | .name = "nxp-isp1760", | 163 | .name = "nxp-isp1760", |
164 | .owner = THIS_MODULE, | ||
165 | .of_match_table = of_isp1760_match, | 164 | .of_match_table = of_isp1760_match, |
166 | }, | 165 | }, |
167 | .probe = of_isp1760_probe, | 166 | .probe = of_isp1760_probe, |
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index e49eb4f90f5d..1a4ea93e620d 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c | |||
@@ -664,7 +664,6 @@ static struct platform_driver ohci_hcd_at91_driver = { | |||
664 | .resume = ohci_hcd_at91_drv_resume, | 664 | .resume = ohci_hcd_at91_drv_resume, |
665 | .driver = { | 665 | .driver = { |
666 | .name = "at91_ohci", | 666 | .name = "at91_ohci", |
667 | .owner = THIS_MODULE, | ||
668 | .of_match_table = of_match_ptr(at91_ohci_dt_ids), | 667 | .of_match_table = of_match_ptr(at91_ohci_dt_ids), |
669 | }, | 668 | }, |
670 | }; | 669 | }; |
diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c index d28b6583ba02..4589e3abba83 100644 --- a/drivers/usb/host/ohci-exynos.c +++ b/drivers/usb/host/ohci-exynos.c | |||
@@ -292,7 +292,6 @@ static struct platform_driver exynos_ohci_driver = { | |||
292 | .shutdown = exynos_ohci_shutdown, | 292 | .shutdown = exynos_ohci_shutdown, |
293 | .driver = { | 293 | .driver = { |
294 | .name = "exynos-ohci", | 294 | .name = "exynos-ohci", |
295 | .owner = THIS_MODULE, | ||
296 | .pm = &exynos_ohci_pm_ops, | 295 | .pm = &exynos_ohci_pm_ops, |
297 | .of_match_table = of_match_ptr(exynos_ohci_match), | 296 | .of_match_table = of_match_ptr(exynos_ohci_match), |
298 | } | 297 | } |
diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb/host/ohci-nxp.c index ba180ed0f81c..d9f0481d7258 100644 --- a/drivers/usb/host/ohci-nxp.c +++ b/drivers/usb/host/ohci-nxp.c | |||
@@ -322,7 +322,6 @@ MODULE_DEVICE_TABLE(of, ohci_hcd_nxp_match); | |||
322 | static struct platform_driver ohci_hcd_nxp_driver = { | 322 | static struct platform_driver ohci_hcd_nxp_driver = { |
323 | .driver = { | 323 | .driver = { |
324 | .name = "usb-ohci", | 324 | .name = "usb-ohci", |
325 | .owner = THIS_MODULE, | ||
326 | .of_match_table = of_match_ptr(ohci_hcd_nxp_match), | 325 | .of_match_table = of_match_ptr(ohci_hcd_nxp_match), |
327 | }, | 326 | }, |
328 | .probe = ohci_hcd_nxp_probe, | 327 | .probe = ohci_hcd_nxp_probe, |
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index 0231606d47c2..989a90156f17 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c | |||
@@ -481,7 +481,6 @@ static struct platform_driver ohci_hcd_omap_driver = { | |||
481 | .resume = ohci_omap_resume, | 481 | .resume = ohci_omap_resume, |
482 | #endif | 482 | #endif |
483 | .driver = { | 483 | .driver = { |
484 | .owner = THIS_MODULE, | ||
485 | .name = "ohci", | 484 | .name = "ohci", |
486 | }, | 485 | }, |
487 | }; | 486 | }; |
diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 4369299064c7..b348483ca174 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c | |||
@@ -364,7 +364,6 @@ static struct platform_driver ohci_platform_driver = { | |||
364 | .remove = ohci_platform_remove, | 364 | .remove = ohci_platform_remove, |
365 | .shutdown = usb_hcd_platform_shutdown, | 365 | .shutdown = usb_hcd_platform_shutdown, |
366 | .driver = { | 366 | .driver = { |
367 | .owner = THIS_MODULE, | ||
368 | .name = "ohci-platform", | 367 | .name = "ohci-platform", |
369 | .pm = &ohci_platform_pm_ops, | 368 | .pm = &ohci_platform_pm_ops, |
370 | .of_match_table = ohci_platform_ids, | 369 | .of_match_table = ohci_platform_ids, |
diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c index e68f3d02cd1a..c069856ed39e 100644 --- a/drivers/usb/host/ohci-pxa27x.c +++ b/drivers/usb/host/ohci-pxa27x.c | |||
@@ -610,7 +610,6 @@ static struct platform_driver ohci_hcd_pxa27x_driver = { | |||
610 | .shutdown = usb_hcd_platform_shutdown, | 610 | .shutdown = usb_hcd_platform_shutdown, |
611 | .driver = { | 611 | .driver = { |
612 | .name = "pxa27x-ohci", | 612 | .name = "pxa27x-ohci", |
613 | .owner = THIS_MODULE, | ||
614 | .of_match_table = of_match_ptr(pxa_ohci_dt_ids), | 613 | .of_match_table = of_match_ptr(pxa_ohci_dt_ids), |
615 | #ifdef CONFIG_PM | 614 | #ifdef CONFIG_PM |
616 | .pm = &ohci_hcd_pxa27x_pm_ops, | 615 | .pm = &ohci_hcd_pxa27x_pm_ops, |
diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c index 3d753a9d3141..095113ea1fcb 100644 --- a/drivers/usb/host/ohci-s3c2410.c +++ b/drivers/usb/host/ohci-s3c2410.c | |||
@@ -462,7 +462,6 @@ static struct platform_driver ohci_hcd_s3c2410_driver = { | |||
462 | .remove = ohci_hcd_s3c2410_drv_remove, | 462 | .remove = ohci_hcd_s3c2410_drv_remove, |
463 | .shutdown = usb_hcd_platform_shutdown, | 463 | .shutdown = usb_hcd_platform_shutdown, |
464 | .driver = { | 464 | .driver = { |
465 | .owner = THIS_MODULE, | ||
466 | .name = "s3c2410-ohci", | 465 | .name = "s3c2410-ohci", |
467 | .pm = &ohci_hcd_s3c2410_pm_ops, | 466 | .pm = &ohci_hcd_s3c2410_pm_ops, |
468 | }, | 467 | }, |
diff --git a/drivers/usb/host/ohci-spear.c b/drivers/usb/host/ohci-spear.c index 8d5876692e7c..062e173d8848 100644 --- a/drivers/usb/host/ohci-spear.c +++ b/drivers/usb/host/ohci-spear.c | |||
@@ -176,7 +176,6 @@ static struct platform_driver spear_ohci_hcd_driver = { | |||
176 | .resume = spear_ohci_hcd_drv_resume, | 176 | .resume = spear_ohci_hcd_drv_resume, |
177 | #endif | 177 | #endif |
178 | .driver = { | 178 | .driver = { |
179 | .owner = THIS_MODULE, | ||
180 | .name = "spear-ohci", | 179 | .name = "spear-ohci", |
181 | .of_match_table = spear_ohci_id_table, | 180 | .of_match_table = spear_ohci_id_table, |
182 | }, | 181 | }, |
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index 110b4b9ebeaa..c4bcfaedeec9 100644 --- a/drivers/usb/host/r8a66597-hcd.c +++ b/drivers/usb/host/r8a66597-hcd.c | |||
@@ -2535,7 +2535,6 @@ static struct platform_driver r8a66597_driver = { | |||
2535 | .remove = r8a66597_remove, | 2535 | .remove = r8a66597_remove, |
2536 | .driver = { | 2536 | .driver = { |
2537 | .name = hcd_name, | 2537 | .name = hcd_name, |
2538 | .owner = THIS_MODULE, | ||
2539 | .pm = R8A66597_DEV_PM_OPS, | 2538 | .pm = R8A66597_DEV_PM_OPS, |
2540 | }, | 2539 | }, |
2541 | }; | 2540 | }; |
diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index c0671750671f..5972c0513182 100644 --- a/drivers/usb/host/u132-hcd.c +++ b/drivers/usb/host/u132-hcd.c | |||
@@ -3219,7 +3219,6 @@ static struct platform_driver u132_platform_driver = { | |||
3219 | .resume = u132_resume, | 3219 | .resume = u132_resume, |
3220 | .driver = { | 3220 | .driver = { |
3221 | .name = hcd_name, | 3221 | .name = hcd_name, |
3222 | .owner = THIS_MODULE, | ||
3223 | }, | 3222 | }, |
3224 | }; | 3223 | }; |
3225 | static int __init u132_hcd_init(void) | 3224 | static int __init u132_hcd_init(void) |