提交 d04ba0a2 编写于 作者: K kbuild test robot 提交者: Sebastian Reichel

power: supply: max14656: fix platform_no_drv_owner.cocci warnings

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: NFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 e448e2d1
...@@ -314,7 +314,6 @@ static const struct of_device_id max14656_match_table[] = { ...@@ -314,7 +314,6 @@ static const struct of_device_id max14656_match_table[] = {
static struct i2c_driver max14656_i2c_driver = { static struct i2c_driver max14656_i2c_driver = {
.driver = { .driver = {
.name = "max14656", .name = "max14656",
.owner = THIS_MODULE,
.of_match_table = max14656_match_table, .of_match_table = max14656_match_table,
}, },
.probe = max14656_probe, .probe = max14656_probe,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册