From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] fix platform_no_drv_owner.cocci warnings Date: Mon, 20 Feb 2017 20:05:32 +0800 Message-ID: <20170220120529.GA59227@xian.lkp.intel.com> References: <201702202015.pVoAzgsD%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1487586813-4122-2-git-send-email-Patrick.Vogelaar@gigatronik.com> Sender: linux-kernel-owner@vger.kernel.org Cc: kbuild-all@01.org, dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, Patrick Vogelaar List-Id: devicetree@vger.kernel.org drivers/input/misc/cy8cmbr3102.c:210:4-9: 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: Patrick Vogelaar Signed-off-by: Fengguang Wu --- cy8cmbr3102.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/input/misc/cy8cmbr3102.c +++ b/drivers/input/misc/cy8cmbr3102.c @@ -207,7 +207,6 @@ MODULE_DEVICE_TABLE(of, of_cy8cmbr3102_m static struct i2c_driver cy8cmbr3102_driver = { .driver = { .name = "cy8cmbr3102", - .owner = THIS_MODULE, .of_match_table = of_match_ptr(of_cy8cmbr3102_match), }, .probe = cy8cmbr3102_probe,