lkml.org 
[lkml]   [2017]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] mfd: fix platform_no_drv_owner.cocci warnings
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@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

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),
},
\
 
 \ /
  Last update: 2017-08-01 18:35    [W:0.036 / U:10.748 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site