From patchwork Thu Nov 15 07:11:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 10683631 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 359AB13BF for ; Thu, 15 Nov 2018 07:11:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15F7A2C227 for ; Thu, 15 Nov 2018 07:11:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06D602C229; Thu, 15 Nov 2018 07:11:58 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham 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 692822C227 for ; Thu, 15 Nov 2018 07:11:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726892AbeKORSc (ORCPT ); Thu, 15 Nov 2018 12:18:32 -0500 Received: from mga02.intel.com ([134.134.136.20]:58036 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbeKORSc (ORCPT ); Thu, 15 Nov 2018 12:18:32 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Nov 2018 23:11:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,235,1539673200"; d="scan'208";a="108418256" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 14 Nov 2018 23:11:53 -0800 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1gNBoe-000HXD-81; Thu, 15 Nov 2018 15:11:52 +0800 Date: Thu, 15 Nov 2018 15:11:13 +0800 From: kbuild test robot To: Tomer Maimon Cc: kbuild-all@01.org, Mark Brown , Avi Fishman , Patrick Venture , Nancy Yuen , Brendan Higgins , openbmc@lists.ozlabs.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: npcm: fix platform_no_drv_owner.cocci warnings Message-ID: <20181115071113.GA99225@ivb43> References: <201811151510.lC0S0JPS%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201811151510.lC0S0JPS%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: kbuild test robot drivers/spi/spi-npcm-pspi.c:470: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 Fixes: 2a22f1b30cee ("spi: npcm: add NPCM PSPI controller driver") CC: Tomer Maimon Signed-off-by: kbuild test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f4ad10924cb922842beafe644dd1b2aa8fa55189 commit: 2a22f1b30cee8d1e104a6c5062a609bedbfd5c39 [2986/3290] spi: npcm: add NPCM PSPI controller driver spi-npcm-pspi.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/spi/spi-npcm-pspi.c +++ b/drivers/spi/spi-npcm-pspi.c @@ -467,7 +467,6 @@ static struct platform_driver npcm_pspi_ .driver = { .name = DRIVER_NAME, .of_match_table = npcm_pspi_match, - .owner = THIS_MODULE, }, .probe = npcm_pspi_probe, .remove = npcm_pspi_remove,