]> git.karo-electronics.de Git - linux-beck.git/commitdiff
power: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:27 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:27 +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>
24 files changed:
drivers/power/88pm860x_battery.c
drivers/power/88pm860x_charger.c
drivers/power/ab8500_btemp.c
drivers/power/ab8500_charger.c
drivers/power/ab8500_fg.c
drivers/power/abx500_chargalg.c
drivers/power/bq27x00_battery.c
drivers/power/charger-manager.c
drivers/power/da9030_battery.c
drivers/power/da9052-battery.c
drivers/power/generic-adc-battery.c
drivers/power/gpio-charger.c
drivers/power/intel_mid_battery.c
drivers/power/jz4740-battery.c
drivers/power/lp8788-charger.c
drivers/power/max14577_charger.c
drivers/power/max8903_charger.c
drivers/power/max8997_charger.c
drivers/power/max8998_charger.c
drivers/power/olpc_battery.c
drivers/power/rx51_battery.c
drivers/power/tps65090-charger.c
drivers/power/twl4030_charger.c
drivers/power/wm97xx_battery.c

index dfcda3a49403fbac3d65e0d87b0a25e5b81fd8fa..bd3c997f4feea094884c2273dc92a0e1bd9fc200 100644 (file)
@@ -1023,7 +1023,6 @@ static SIMPLE_DEV_PM_OPS(pm860x_battery_pm_ops,
 static struct platform_driver pm860x_battery_driver = {
        .driver = {
                   .name = "88pm860x-battery",
-                  .owner = THIS_MODULE,
                   .pm = &pm860x_battery_pm_ops,
        },
        .probe = pm860x_battery_probe,
index de029bbc1cc151ec0c3e43ac2c7f1a56bcc32935..650930e4fa798eff37d2d6d7d14fe8d9b7e08368 100644 (file)
@@ -732,7 +732,6 @@ static int pm860x_charger_remove(struct platform_device *pdev)
 static struct platform_driver pm860x_charger_driver = {
        .driver = {
                   .name = "88pm860x-charger",
-                  .owner = THIS_MODULE,
        },
        .probe = pm860x_charger_probe,
        .remove = pm860x_charger_remove,
index 7f9a4547dccd9bf757fa1197e5a26ae0a319de1f..4ebf7b0819f76837fab13dfb05c448edd07e55c6 100644 (file)
@@ -1195,7 +1195,6 @@ static struct platform_driver ab8500_btemp_driver = {
        .resume = ab8500_btemp_resume,
        .driver = {
                .name = "ab8500-btemp",
-               .owner = THIS_MODULE,
                .of_match_table = ab8500_btemp_match,
        },
 };
index 19110aa613a13110ba08d8c7cc783ba834f990b7..8c8d170ff0f86533c01d560791f84e7b6bdd2010 100644 (file)
@@ -3733,7 +3733,6 @@ static struct platform_driver ab8500_charger_driver = {
        .resume = ab8500_charger_resume,
        .driver = {
                .name = "ab8500-charger",
-               .owner = THIS_MODULE,
                .of_match_table = ab8500_charger_match,
        },
 };
index 217da4b2ca8639ee5f2d5ced62615bfc558aed4f..a71834793b1942556013bdf3e16bb7cf909ef747 100644 (file)
@@ -3280,7 +3280,6 @@ static struct platform_driver ab8500_fg_driver = {
        .resume = ab8500_fg_resume,
        .driver = {
                .name = "ab8500-fg",
-               .owner = THIS_MODULE,
                .of_match_table = ab8500_fg_match,
        },
 };
index 6d2723664a01092674815010cc70cb3a16c70d87..ab54b8dea670eaa3759e3488f12d2768dcc886b8 100644 (file)
@@ -2156,7 +2156,6 @@ static struct platform_driver abx500_chargalg_driver = {
        .resume = abx500_chargalg_resume,
        .driver = {
                .name = "ab8500-chargalg",
-               .owner = THIS_MODULE,
                .of_match_table = ab8500_chargalg_match,
        },
 };
index e3bacfe3bcd0bc2af2d21ae64b691d02363ba5ce..a78ac201828e8ba13e3684c9b8deaba3274c79d3 100644 (file)
@@ -1014,7 +1014,6 @@ static struct platform_driver bq27000_battery_driver = {
        .remove = bq27000_battery_remove,
        .driver = {
                .name = "bq27000-battery",
-               .owner = THIS_MODULE,
        },
 };
 
index 7098a1ce2d3c1068e2ef6cc5fbbe4d185ece9850..3d3c12f1d6e101c39d3e18174b2c03ab7f6d27cf 100644 (file)
@@ -2028,7 +2028,6 @@ static const struct dev_pm_ops charger_manager_pm = {
 static struct platform_driver charger_manager_driver = {
        .driver = {
                .name = "charger-manager",
-               .owner = THIS_MODULE,
                .pm = &charger_manager_pm,
                .of_match_table = charger_manager_match,
        },
index ae6c41835ee6043eef81481b07db6ac467057abc..78cd5d66144b8861fde99aaf070d0b0e2c04794f 100644 (file)
@@ -579,7 +579,6 @@ static int da9030_battery_remove(struct platform_device *dev)
 static struct platform_driver da903x_battery_driver = {
        .driver = {
                .name   = "da903x-battery",
-               .owner  = THIS_MODULE,
        },
        .probe = da9030_battery_probe,
        .remove = da9030_battery_remove,
index f8f4c0f7c17da6085914b7868aa396b41073714c..d17250f745c29abd1560686b74de688c049c9b9c 100644 (file)
@@ -656,7 +656,6 @@ static struct platform_driver da9052_bat_driver = {
        .remove = da9052_bat_remove,
        .driver = {
                .name = "da9052-bat",
-               .owner = THIS_MODULE,
        },
 };
 module_platform_driver(da9052_bat_driver);
index 59a1421f92885ea8fa98f0468b9a8b5660010c65..d72733e4f93aa68a8fe12b24b2bc2d9e6bc9bd32 100644 (file)
@@ -414,7 +414,6 @@ static const struct dev_pm_ops gab_pm_ops = {
 static struct platform_driver gab_driver = {
        .driver         = {
                .name   = "generic-adc-battery",
-               .owner  = THIS_MODULE,
                .pm     = GAB_PM_OPS
        },
        .probe          = gab_probe,
index 7536933d0ab977574ec3138c47f5c5028028a084..3ee889fe00219e1d2e4a7fa1b9f16f987b9444d7 100644 (file)
@@ -194,7 +194,6 @@ static struct platform_driver gpio_charger_driver = {
        .remove = gpio_charger_remove,
        .driver = {
                .name = "gpio-charger",
-               .owner = THIS_MODULE,
                .pm = &gpio_charger_pm_ops,
        },
 };
index 4520811168ad4f2d237b06d4dac61bd2aec14235..de3f39e6fa8e6a47f18174d2bcaface588c23f86 100644 (file)
@@ -773,7 +773,6 @@ static int platform_pmic_battery_remove(struct platform_device *pdev)
 static struct platform_driver platform_pmic_battery_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
        },
        .probe = platform_pmic_battery_probe,
        .remove = platform_pmic_battery_remove,
index 6c8931d4ad62a554e3f185af3ada317ac61ffc7d..9cd391d61819e9d336e1a854239cfbc24f599cd3 100644 (file)
@@ -406,7 +406,6 @@ static struct platform_driver jz_battery_driver = {
        .remove         = jz_battery_remove,
        .driver = {
                .name = "jz4740-battery",
-               .owner = THIS_MODULE,
                .pm = JZ_BATTERY_PM_OPS,
        },
 };
index ed49b50b220b3ed6541c5b6f82079e1d0373e8f7..21fc233c7d61363091ba63904e7eb010ba70a830 100644 (file)
@@ -740,7 +740,6 @@ static struct platform_driver lp8788_charger_driver = {
        .remove = lp8788_charger_remove,
        .driver = {
                .name = LP8788_DEV_CHARGER,
-               .owner = THIS_MODULE,
        },
 };
 module_platform_driver(lp8788_charger_driver);
index 0a2bc727702699f6977199940326838e8ccdbcad..ef4103ee6021419da909748ea4189546e3146290 100644 (file)
@@ -599,7 +599,6 @@ MODULE_DEVICE_TABLE(platform, max14577_charger_id);
 
 static struct platform_driver max14577_charger_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "max14577-charger",
        },
        .probe          = max14577_charger_probe,
index 08f0d7909b6b9a2c95a90ee0292bd301129eb52b..99e3cdcd3e11f06c7763865809f83c20f4eedae1 100644 (file)
@@ -368,7 +368,6 @@ static struct platform_driver max8903_driver = {
        .remove = max8903_remove,
        .driver = {
                .name   = "max8903-charger",
-               .owner  = THIS_MODULE,
        },
 };
 
index 4bdedfed936d87ab55cc1c7c1b7c84e884361fd6..aefa0c9a3007dcd729859542900f902801719286 100644 (file)
@@ -181,7 +181,6 @@ static const struct platform_device_id max8997_battery_id[] = {
 static struct platform_driver max8997_battery_driver = {
        .driver = {
                .name = "max8997-battery",
-               .owner = THIS_MODULE,
        },
        .probe = max8997_battery_probe,
        .remove = max8997_battery_remove,
index 5017470c2fc913965bfe93020072cc08b421dae8..08694c7a9f38c1823885206fac0b14528599bd01 100644 (file)
@@ -195,7 +195,6 @@ static const struct platform_device_id max8998_battery_id[] = {
 static struct platform_driver max8998_battery_driver = {
        .driver = {
                .name = "max8998-battery",
-               .owner = THIS_MODULE,
        },
        .probe = max8998_battery_probe,
        .remove = max8998_battery_remove,
index 1ec810ada5edd4cf4c9299016ef5326a35c800f1..ad9cde705de1071ba748dfaec3b59ea1f70e3cb9 100644 (file)
@@ -677,7 +677,6 @@ MODULE_DEVICE_TABLE(of, olpc_battery_ids);
 static struct platform_driver olpc_battery_driver = {
        .driver = {
                .name = "olpc-battery",
-               .owner = THIS_MODULE,
                .of_match_table = olpc_battery_ids,
        },
        .probe = olpc_battery_probe,
index d5a2acfb88215def3d95e49b6cec39e627b0ae85..a01aacb32f5910b58e45ba4bcd57e6fa8c8382b5 100644 (file)
@@ -281,7 +281,6 @@ static struct platform_driver rx51_battery_driver = {
        .remove = rx51_battery_remove,
        .driver = {
                .name = "rx51-battery",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(n900_battery_of_match),
        },
 };
index 3e8ba97c8169c137eef4f716d0f8f11ff38e89a8..0f4e5971dff5b979331753d08f53d6e27b4fbf33 100644 (file)
@@ -353,7 +353,6 @@ static struct platform_driver tps65090_charger_driver = {
        .driver = {
                .name   = "tps65090-charger",
                .of_match_table = of_tps65090_charger_match,
-               .owner  = THIS_MODULE,
        },
        .probe  = tps65090_charger_probe,
        .remove = tps65090_charger_remove,
index 2598c588006e7784f6d989ea7da9f5f2783a9304..d35b83e635b500188b79bb3ddbbd31df986f7b15 100644 (file)
@@ -716,7 +716,6 @@ MODULE_DEVICE_TABLE(of, twl_bci_of_match);
 static struct platform_driver twl4030_bci_driver = {
        .driver = {
                .name   = "twl4030_bci",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(twl_bci_of_match),
        },
        .remove = __exit_p(twl4030_bci_remove),
index 58f7348e6c2214f7bb63de92c2f6bede1995a547..a8e6203673ade1bd24e124db09002242480b0369 100644 (file)
@@ -281,7 +281,6 @@ static int wm97xx_bat_remove(struct platform_device *dev)
 static struct platform_driver wm97xx_bat_driver = {
        .driver = {
                .name   = "wm97xx-battery",
-               .owner  = THIS_MODULE,
 #ifdef CONFIG_PM
                .pm     = &wm97xx_bat_pm_ops,
 #endif