power: supply: max14656: fix platform_no_drv_owner.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Mon, 16 Jan 2017 23:47:56 +0000 (07:47 +0800)
committerSebastian Reichel <sre@kernel.org>
Tue, 17 Jan 2017 00:10:41 +0000 (01:10 +0100)
drivers/power/supply/max14656_charger_detector.c:317:3-8:
No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Alexander Kurz <akurz@blala.de>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/max14656_charger_detector.c

index 2fd73e117c1398faf7ba8a67a5bf4b803d433ad4..80f8e5c1b4eca3a6ad750c1c18988ff8a6c636ba 100644 (file)
@@ -314,7 +314,6 @@ static const struct of_device_id max14656_match_table[] = {
 static struct i2c_driver max14656_i2c_driver = {
        .driver = {
                .name   = "max14656",
-               .owner  = THIS_MODULE,
                .of_match_table = max14656_match_table,
        },
        .probe          = max14656_probe,