usb: phy: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:50 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:50 +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>
13 files changed:
drivers/usb/phy/phy-ab8500-usb.c
drivers/usb/phy/phy-am335x-control.c
drivers/usb/phy/phy-am335x.c
drivers/usb/phy/phy-generic.c
drivers/usb/phy/phy-gpio-vbus-usb.c
drivers/usb/phy/phy-isp1301-omap.c
drivers/usb/phy/phy-keystone.c
drivers/usb/phy/phy-mv-usb.c
drivers/usb/phy/phy-mxs-usb.c
drivers/usb/phy/phy-omap-otg.c
drivers/usb/phy/phy-tahvo.c
drivers/usb/phy/phy-tegra-usb.c
drivers/usb/phy/phy-twl6030-usb.c

index 11ab2c45e46220ac98a9dc829fd88cecde51aa70..579ef4e9cc41ac386404bf86ec96933b15ab03ae 100644 (file)
@@ -1505,7 +1505,6 @@ static struct platform_driver ab8500_usb_driver = {
        .id_table       = ab8500_usb_devtype,
        .driver         = {
                .name   = "abx5x0-usb",
-               .owner  = THIS_MODULE,
        },
 };
 
index 35b6083b799949bc30f4f359ee62a55542959ca9..460b515cc5cf02e4d2319ac0a092279b168d8c7e 100644 (file)
@@ -175,7 +175,6 @@ static struct platform_driver am335x_control_driver = {
        .probe          = am335x_control_usb_probe,
        .driver         = {
                .name   = "am335x-control-usb",
-               .owner  = THIS_MODULE,
                .of_match_table = omap_control_usb_id_table,
        },
 };
index b70e05537180b25daa0c060a6975baac69e20024..90b67a4ca22164be02cf2cd1e956514cb592798d 100644 (file)
@@ -137,7 +137,6 @@ static struct platform_driver am335x_phy_driver = {
        .remove         = am335x_phy_remove,
        .driver         = {
                .name   = "am335x-phy-driver",
-               .owner  = THIS_MODULE,
                .pm = &am335x_pm_ops,
                .of_match_table = am335x_phy_ids,
        },
index 7594e5069ae59d2f621054ff7f6cd7331022f5a2..1bb4d3adc9c776346ab7157f450d72062d6ecfb8 100644 (file)
@@ -286,7 +286,6 @@ static struct platform_driver usb_phy_generic_driver = {
        .remove         = usb_phy_generic_remove,
        .driver         = {
                .name   = "usb_phy_generic",
-               .owner  = THIS_MODULE,
                .of_match_table = nop_xceiv_dt_ids,
        },
 };
index f4b14bd97e1442a586371943d3bd39897e5b997f..b5c368a9175fc770f10a61709b7cd282fd9894a0 100644 (file)
@@ -380,7 +380,6 @@ MODULE_ALIAS("platform:gpio-vbus");
 static struct platform_driver gpio_vbus_driver = {
        .driver = {
                .name  = "gpio-vbus",
-               .owner = THIS_MODULE,
 #ifdef CONFIG_PM
                .pm = &gpio_vbus_dev_pm_ops,
 #endif
index 8eea56d3ded6deff1f361ed5fd3ac78208eb42d2..397b17134487f8197acafa5ebe4f3bda6751fd9b 100644 (file)
@@ -878,7 +878,6 @@ static struct platform_driver omap_otg_driver = {
        .probe          = otg_probe,
        .remove         = otg_remove,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "omap_otg",
        },
 };
index f4d722de912b4df44a3285b7e306b6496c48d768..e0556f7832b5534c29d593b165f473995e96e1da 100644 (file)
@@ -123,7 +123,6 @@ static struct platform_driver keystone_usbphy_driver = {
        .remove         = keystone_usbphy_remove,
        .driver         = {
                .name   = "keystone-usbphy",
-               .owner  = THIS_MODULE,
                .of_match_table = keystone_usbphy_ids,
        },
 };
index 7d80c54f0ac66924c2d228944c1fcbf23f45eb5e..2162f7a37f766b9b11554ce6e7f9d1fa070d7e3a 100644 (file)
@@ -896,7 +896,6 @@ static struct platform_driver mv_otg_driver = {
        .probe = mv_otg_probe,
        .remove = mv_otg_remove,
        .driver = {
-                  .owner = THIS_MODULE,
                   .name = driver_name,
                   },
 #ifdef CONFIG_PM
index 0e0c41587a08b77cea9e49178de1c420a67405dc..9aef6ca162fed1c020c658cfa93870449ffd989e 100644 (file)
@@ -491,7 +491,6 @@ static struct platform_driver mxs_phy_driver = {
        .remove = mxs_phy_remove,
        .driver = {
                .name = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = mxs_phy_dt_ids,
                .pm = &mxs_phy_pm,
         },
index 11598cdb3189c79afd26e2ba1bbe1edcae19afb3..56ee7603034b890fa49d7bf6574692d5c6383e41 100644 (file)
@@ -158,7 +158,6 @@ static struct platform_driver omap_otg_driver = {
        .probe          = omap_otg_probe,
        .remove         = omap_otg_remove,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "omap_otg",
        },
 };
index cc61ee44b911dfa5a0b2842a827b5ebfed285f20..6a6777d2f57d67e9414618e112425fc9831caf32 100644 (file)
@@ -446,7 +446,6 @@ static struct platform_driver tahvo_usb_driver = {
        .remove         = tahvo_usb_remove,
        .driver         = {
                .name   = "tahvo-usb",
-               .owner  = THIS_MODULE,
        },
 };
 module_platform_driver(tahvo_usb_driver);
index 886f1807a67bbdcb8fe5e17e91b45e382507db14..af9c9ec9b2a66f44af6be0f781f18cc7059960a4 100644 (file)
@@ -1086,7 +1086,6 @@ static struct platform_driver tegra_usb_phy_driver = {
        .remove         = tegra_usb_phy_remove,
        .driver         = {
                .name   = "tegra-phy",
-               .owner  = THIS_MODULE,
                .of_match_table = tegra_usb_phy_id_table,
        },
 };
index 44ea082e40dc070ab6386c12ae6ec53ed5b71957..12741856a75c3274133fbb46d0ff271c7dbf9d22 100644 (file)
@@ -430,7 +430,6 @@ static struct platform_driver twl6030_usb_driver = {
        .remove         = twl6030_usb_remove,
        .driver         = {
                .name   = "twl6030_usb",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(twl6030_usb_id_table),
        },
 };