From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] platform/x86: fix platform_no_drv_owner.cocci warnings Date: Fri, 13 Jan 2017 18:15:10 +0800 Message-ID: <20170113101510.GA25249@lkp-wsm-ep2> References: <201701131816.MMxSdYfR%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20170111212644.9217-1-f.fainelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Cc: kbuild-all@01.org, platform-driver-x86@vger.kernel.org, cphealy@gmail.com, Guenter Roeck , Florian Fainelli , Darren Hart , open list List-Id: platform-driver-x86.vger.kernel.org drivers/platform/x86/scu.c:1541: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: Guenter Roeck Signed-off-by: Fengguang Wu --- scu.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/platform/x86/scu.c +++ b/drivers/platform/x86/scu.c @@ -1538,7 +1538,6 @@ static struct platform_driver scu_driver .remove = __exit_p(scu_remove), .driver = { .name = "scu", - .owner = THIS_MODULE, }, };