[PATCH] mfd: fix platform_no_drv_owner.cocci warnings
From: kbuild test robot
Date: Tue Aug 01 2017 - 12:35:13 EST
drivers/mfd/lmp92001-i2c.c:192:25-30: 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
Fixes: 586a684127af ("mfd: Add support for TI LMP92001 driver")
CC: Abhisit Sangjan <s.abhisit@xxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---
lmp92001-i2c.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/mfd/lmp92001-i2c.c
+++ b/drivers/mfd/lmp92001-i2c.c
@@ -189,7 +189,6 @@ static int lmp92001_i2c_detect(struct i2
static struct i2c_driver lmp92001_i2c_driver = {
.driver = {
- .owner = THIS_MODULE,
.name = "lmp92001",
.of_match_table = of_match_ptr(lmp92001_dt_ids),
},