Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1669059

[PATCH] Input: fix platform_no_drv_owner.cocci warnings

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject [PATCH] Input: fix platform_no_drv_owner.cocci warnings
Date 2017-06-19 15:30 +0200
Message-ID <tU4UG-3bd-11@gated-at.bofh.it> (permalink)
References <tU4UG-3bd-13@gated-at.bofh.it> <tU1k6-S2-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


drivers/input/touchscreen/goodix-ts-sunrise/goodix_ts_core.c:1335: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_ts_core.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/input/touchscreen/goodix-ts-sunrise/goodix_ts_core.c
+++ b/drivers/input/touchscreen/goodix-ts-sunrise/goodix_ts_core.c
@@ -1332,7 +1332,6 @@ MODULE_DEVICE_TABLE(platform, ts_core_id
 static struct platform_driver goodix_ts_driver = {
 	.driver = {
 		.name = GOODIX_CORE_DRIVER_NAME,
-		.owner = THIS_MODULE,
 		.pm = &dev_pm_ops,
 	},
 	.probe = goodix_ts_probe,

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] Input: fix platform_no_drv_owner.cocci warnings kbuild test robot <lkp@intel.com> - 2017-06-19 15:30 +0200

csiph-web