lkml.org 
[lkml]   [2017]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Input: fix platform_no_drv_owner.cocci warnings
drivers/input/touchscreen/goodix-ts-sunrise/goodix_gtx5_i2c.c:872: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: Wang Yafei <wangyafei@goodix.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

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

--- a/drivers/input/touchscreen/goodix-ts-sunrise/goodix_gtx5_i2c.c
+++ b/drivers/input/touchscreen/goodix-ts-sunrise/goodix_gtx5_i2c.c
@@ -869,7 +869,6 @@ MODULE_DEVICE_TABLE(i2c, gtx5_id_table);
static struct i2c_driver goodix_i2c_driver = {
.driver = {
.name = TS_DRIVER_NAME,
- .owner = THIS_MODULE,
.of_match_table = of_match_ptr(gtx5_of_matchs),
},
.probe = goodix_i2c_probe,
\
 
 \ /
  Last update: 2017-06-19 15:26    [W:0.233 / U:0.164 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site