usb: host: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:49 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:49 +0000 (16:21 +0200)
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>
19 files changed:
drivers/usb/host/ehci-exynos.c
drivers/usb/host/ehci-orion.c
drivers/usb/host/ehci-platform.c
drivers/usb/host/ehci-w90x900.c
drivers/usb/host/fhci-hcd.c
drivers/usb/host/fsl-mph-dr-of.c
drivers/usb/host/isp116x-hcd.c
drivers/usb/host/isp1362-hcd.c
drivers/usb/host/isp1760-if.c
drivers/usb/host/ohci-at91.c
drivers/usb/host/ohci-exynos.c
drivers/usb/host/ohci-nxp.c
drivers/usb/host/ohci-omap.c
drivers/usb/host/ohci-platform.c
drivers/usb/host/ohci-pxa27x.c
drivers/usb/host/ohci-s3c2410.c
drivers/usb/host/ohci-spear.c
drivers/usb/host/r8a66597-hcd.c
drivers/usb/host/u132-hcd.c

index 7189f2e..e1b4f58 100644 (file)
@@ -323,7 +323,6 @@ static struct platform_driver exynos_ehci_driver = {
        .shutdown       = usb_hcd_platform_shutdown,
        .driver = {
                .name   = "exynos-ehci",
-               .owner  = THIS_MODULE,
                .pm     = &exynos_ehci_pm_ops,
                .of_match_table = of_match_ptr(exynos_ehci_match),
        }
index 22e15ca..ebd203a 100644 (file)
@@ -321,7 +321,6 @@ static struct platform_driver ehci_orion_driver = {
        .shutdown       = usb_hcd_platform_shutdown,
        .driver = {
                .name   = "orion-ehci",
-               .owner  = THIS_MODULE,
                .of_match_table = ehci_orion_dt_ids,
        },
 };
index 2f5b9ce..bc6455c 100644 (file)
@@ -379,7 +379,6 @@ static struct platform_driver ehci_platform_driver = {
        .remove         = ehci_platform_remove,
        .shutdown       = usb_hcd_platform_shutdown,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "ehci-platform",
                .pm     = &ehci_platform_pm_ops,
                .of_match_table = vt8500_ehci_ids,
index a9303af..eb7a5a8 100644 (file)
@@ -126,7 +126,6 @@ static struct platform_driver ehci_hcd_w90x900_driver = {
        .remove = ehci_w90x900_remove,
        .driver = {
                .name = "w90x900-ehci",
-               .owner = THIS_MODULE,
        },
 };
 
index a1a1ef5..c6cebb9 100644 (file)
@@ -821,7 +821,6 @@ MODULE_DEVICE_TABLE(of, of_fhci_match);
 static struct platform_driver of_fhci_driver = {
        .driver = {
                .name = "fsl,usb-fhci",
-               .owner = THIS_MODULE,
                .of_match_table = of_fhci_match,
        },
        .probe          = of_fhci_probe,
index 9162d1b..7e325e9 100644 (file)
@@ -326,7 +326,6 @@ static const struct of_device_id fsl_usb2_mph_dr_of_match[] = {
 static struct platform_driver fsl_usb2_mph_dr_driver = {
        .driver = {
                .name = "fsl-usb2-mph-dr",
-               .owner = THIS_MODULE,
                .of_match_table = fsl_usb2_mph_dr_of_match,
        },
        .probe  = fsl_usb2_mph_dr_of_probe,
index 240e792..31c9c4d 100644 (file)
@@ -1707,7 +1707,6 @@ static struct platform_driver isp116x_driver = {
        .resume = isp116x_resume,
        .driver = {
                .name = hcd_name,
-               .owner  = THIS_MODULE,
        },
 };
 
index 4bb3798..75e5876 100644 (file)
@@ -2778,7 +2778,6 @@ static struct platform_driver isp1362_driver = {
        .resume = isp1362_resume,
        .driver = {
                .name = hcd_name,
-               .owner = THIS_MODULE,
        },
 };
 
index df931e9..09254a4 100644 (file)
@@ -161,7 +161,6 @@ MODULE_DEVICE_TABLE(of, of_isp1760_match);
 static struct platform_driver isp1760_of_driver = {
        .driver = {
                .name = "nxp-isp1760",
-               .owner = THIS_MODULE,
                .of_match_table = of_isp1760_match,
        },
        .probe          = of_isp1760_probe,
index e49eb4f..1a4ea93 100644 (file)
@@ -664,7 +664,6 @@ static struct platform_driver ohci_hcd_at91_driver = {
        .resume         = ohci_hcd_at91_drv_resume,
        .driver         = {
                .name   = "at91_ohci",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(at91_ohci_dt_ids),
        },
 };
index d28b658..4589e3a 100644 (file)
@@ -292,7 +292,6 @@ static struct platform_driver exynos_ohci_driver = {
        .shutdown       = exynos_ohci_shutdown,
        .driver = {
                .name   = "exynos-ohci",
-               .owner  = THIS_MODULE,
                .pm     = &exynos_ohci_pm_ops,
                .of_match_table = of_match_ptr(exynos_ohci_match),
        }
index ba180ed..d9f0481 100644 (file)
@@ -322,7 +322,6 @@ MODULE_DEVICE_TABLE(of, ohci_hcd_nxp_match);
 static struct platform_driver ohci_hcd_nxp_driver = {
        .driver = {
                .name = "usb-ohci",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(ohci_hcd_nxp_match),
        },
        .probe = ohci_hcd_nxp_probe,
index 0231606..989a901 100644 (file)
@@ -481,7 +481,6 @@ static struct platform_driver ohci_hcd_omap_driver = {
        .resume         = ohci_omap_resume,
 #endif
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "ohci",
        },
 };
index 4369299..b348483 100644 (file)
@@ -364,7 +364,6 @@ static struct platform_driver ohci_platform_driver = {
        .remove         = ohci_platform_remove,
        .shutdown       = usb_hcd_platform_shutdown,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "ohci-platform",
                .pm     = &ohci_platform_pm_ops,
                .of_match_table = ohci_platform_ids,
index e68f3d0..c069856 100644 (file)
@@ -610,7 +610,6 @@ static struct platform_driver ohci_hcd_pxa27x_driver = {
        .shutdown       = usb_hcd_platform_shutdown,
        .driver         = {
                .name   = "pxa27x-ohci",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(pxa_ohci_dt_ids),
 #ifdef CONFIG_PM
                .pm     = &ohci_hcd_pxa27x_pm_ops,
index 3d753a9..095113e 100644 (file)
@@ -462,7 +462,6 @@ static struct platform_driver ohci_hcd_s3c2410_driver = {
        .remove         = ohci_hcd_s3c2410_drv_remove,
        .shutdown       = usb_hcd_platform_shutdown,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "s3c2410-ohci",
                .pm     = &ohci_hcd_s3c2410_pm_ops,
        },
index 8d58766..062e173 100644 (file)
@@ -176,7 +176,6 @@ static struct platform_driver spear_ohci_hcd_driver = {
        .resume =       spear_ohci_hcd_drv_resume,
 #endif
        .driver = {
-               .owner = THIS_MODULE,
                .name = "spear-ohci",
                .of_match_table = spear_ohci_id_table,
        },
index 110b4b9..c4bcfae 100644 (file)
@@ -2535,7 +2535,6 @@ static struct platform_driver r8a66597_driver = {
        .remove =       r8a66597_remove,
        .driver         = {
                .name = hcd_name,
-               .owner  = THIS_MODULE,
                .pm     = R8A66597_DEV_PM_OPS,
        },
 };
index c067175..5972c05 100644 (file)
@@ -3219,7 +3219,6 @@ static struct platform_driver u132_platform_driver = {
        .resume = u132_resume,
        .driver = {
                   .name = hcd_name,
-                  .owner = THIS_MODULE,
                   },
 };
 static int __init u132_hcd_init(void)