From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] spi: lantiq-ssc: fix platform_no_drv_owner.cocci warnings Date: Mon, 20 Feb 2017 01:33:10 +0800 Message-ID: <20170219173310.GA64236@lkp-hsx03.lkp.intel.com> References: <201702200104.ay31O32d%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kbuild-all@01.org, linux-spi@vger.kernel.org, Mark Brown , linux-kernel@vger.kernel.org To: Hauke Mehrtens Return-path: Content-Disposition: inline In-Reply-To: <201702200104.ay31O32d%fengguang.wu@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-spi.vger.kernel.org drivers/spi/spi-lantiq-ssc.c:973: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: Hauke Mehrtens Signed-off-by: Fengguang Wu --- spi-lantiq-ssc.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/spi/spi-lantiq-ssc.c +++ b/drivers/spi/spi-lantiq-ssc.c @@ -970,7 +970,6 @@ static struct platform_driver lantiq_ssc .remove = lantiq_ssc_remove, .driver = { .name = "spi-lantiq-ssc", - .owner = THIS_MODULE, .of_match_table = lantiq_ssc_match, }, };