From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751430AbdAMKQX (ORCPT ); Fri, 13 Jan 2017 05:16:23 -0500 Received: from mga14.intel.com ([192.55.52.115]:10589 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751356AbdAMKQU (ORCPT ); Fri, 13 Jan 2017 05:16:20 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,221,1477983600"; d="scan'208";a="48432943" Date: Fri, 13 Jan 2017 18:15:10 +0800 From: kbuild test robot To: Florian Fainelli Cc: kbuild-all@01.org, platform-driver-x86@vger.kernel.org, cphealy@gmail.com, Guenter Roeck , Florian Fainelli , Darren Hart , open list Subject: [PATCH] platform/x86: fix platform_no_drv_owner.cocci warnings 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 Content-Disposition: inline In-Reply-To: <20170111212644.9217-1-f.fainelli@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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, }, };