lkml.org 
[lkml]   [2016]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Input: synaptics-rmi4: fix platform_no_drv_owner.cocci warnings
drivers/input/rmi4/rmi_i2c.c:373: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: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

rmi_i2c.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/input/rmi4/rmi_i2c.c
+++ b/drivers/input/rmi4/rmi_i2c.c
@@ -370,7 +370,6 @@ MODULE_DEVICE_TABLE(i2c, rmi_id);

static struct i2c_driver rmi_i2c_driver = {
.driver = {
- .owner = THIS_MODULE,
.name = "rmi4_i2c",
.pm = &rmi_i2c_pm,
},
\
 
 \ /
  Last update: 2016-02-10 04:01    [W:0.061 / U:6.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site