From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] Input: fix platform_no_drv_owner.cocci warnings Date: Mon, 19 Jun 2017 21:24:27 +0800 Message-ID: <20170619132427.GA46574@lkp-hsx03.lkp.intel.com> References: <201706192107.ru8ophjW%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga14.intel.com ([192.55.52.115]:64439 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750839AbdFSNZ3 (ORCPT ); Mon, 19 Jun 2017 09:25:29 -0400 Content-Disposition: inline In-Reply-To: <33339a02-dac7-9097-9ea4-3c12c7b84a59@goodix.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Wang Yafei Cc: kbuild-all@01.org, Dmitry Torokhov , Henrik Rydberg , linux-input@vger.kernel.org, andrew@goodix.com, mouse@goodix.com, linux-kernel@vger.kernel.org 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 Signed-off-by: Fengguang Wu --- 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,