From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] spi: npcm: fix platform_no_drv_owner.cocci warnings Date: Thu, 15 Nov 2018 15:11:13 +0800 Message-ID: <20181115071113.GA99225@ivb43> References: <201811151510.lC0S0JPS%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 To: Tomer Maimon Return-path: Content-Disposition: inline In-Reply-To: <201811151510.lC0S0JPS%fengguang.wu@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org 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,