From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] Input: synaptics-rmi4: fix platform_no_drv_owner.cocci warnings Date: Wed, 10 Feb 2016 10:45:25 +0800 Message-ID: <20160210024525.GA34639@lkp-nex05> References: <201602101058.eieyFMNU%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1455068440-11964-1-git-send-email-aduggan@synaptics.com> Sender: linux-kernel-owner@vger.kernel.org Cc: kbuild-all@01.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Duggan , Dmitry Torokhov , Linus Walleij , Jiri Kosina , Benjamin Tissoires , Christopher Heiny , Stephen Chandler Paul , Vincent Huang , Chris Healy , Andrey Gusakov List-Id: linux-input@vger.kernel.org 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 Signed-off-by: Fengguang Wu --- 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, },