From patchwork Fri Jan 13 10:15:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 9514973 X-Patchwork-Delegate: andy.shevchenko@gmail.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 01173601DA for ; Fri, 13 Jan 2017 10:16:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB58C285B6 for ; Fri, 13 Jan 2017 10:16:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFE6828606; Fri, 13 Jan 2017 10:16:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AE71285B6 for ; Fri, 13 Jan 2017 10:16:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbdAMKQV (ORCPT ); Fri, 13 Jan 2017 05:16:21 -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 Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP; 13 Jan 2017 02:15:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,221,1477983600"; d="scan'208";a="48432943" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga004.jf.intel.com with ESMTP; 13 Jan 2017 02:15:52 -0800 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1cRyvt-000W8d-2W; Fri, 13 Jan 2017 18:18:05 +0800 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-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: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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, }, };