power_supply: Drop owner assignment from i2c_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 10 Jul 2015 05:39:22 +0000 (14:39 +0900)
committerSebastian Reichel <sre@kernel.org>
Mon, 13 Jul 2015 11:48:29 +0000 (13:48 +0200)
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/bq24190_charger.c
drivers/power/bq24735-charger.c
drivers/power/pm2301_charger.c

index 052db78c373650979f620cd031cf7f7b0fa067b7..703ebecaf38bbb40d0a1e8bf4cc5bdd079335df3 100644 (file)
@@ -1534,7 +1534,6 @@ static struct i2c_driver bq24190_driver = {
        .id_table       = bq24190_i2c_ids,
        .driver = {
                .name           = "bq24190-charger",
-               .owner          = THIS_MODULE,
                .pm             = &bq24190_pm_ops,
                .of_match_table = of_match_ptr(bq24190_of_match),
        },
index 961a189300275a3d65b5885ab5d647822059ba4c..b0174379713c1a0e8fe0f8f990978fb44d3f2bc3 100644 (file)
@@ -409,7 +409,6 @@ MODULE_DEVICE_TABLE(of, bq24735_match_ids);
 static struct i2c_driver bq24735_charger_driver = {
        .driver = {
                .name = "bq24735-charger",
-               .owner = THIS_MODULE,
                .of_match_table = bq24735_match_ids,
        },
        .probe = bq24735_charger_probe,
index cc0893ffbf7e66bc2d107b4ea708d04cf09a87b1..3a45cc0c4dceb13e46e7ea9a92d8c1a3f10ac2f9 100644 (file)
@@ -1244,7 +1244,6 @@ static struct i2c_driver pm2xxx_charger_driver = {
        .remove = pm2xxx_wall_charger_remove,
        .driver = {
                .name = "pm2xxx-wall_charger",
-               .owner = THIS_MODULE,
                .pm = PM2XXX_PM_OPS,
        },
        .id_table = pm2xxx_id,