From: kbuild test robot Subject: [PATCH] ASoC: fix platform_no_drv_owner.cocci warnings Date: Wed, 22 Feb 2017 01:44:02 +0800 Message-ID: <20170221174402.GA72169@lkp-g5.lkp.intel.com> References: <201702220127.8Yf496qG%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by alsa0.perex.cz (Postfix) with ESMTP id 344B4266D8D for ; Tue, 21 Feb 2017 18:44:19 +0100 (CET) Content-Disposition: inline In-Reply-To: <4a4e60530c00c33f554b8157c2afa0a57362c0bc.1487684248.git.simon.ho@conexant.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: simon.ho.cnxt@gmail.com Cc: alsa-devel@alsa-project.org, Simon Ho , lgirdwood@gmail.com, tiwai@suse.com, broonie@kernel.org, kbuild-all@01.org List-Id: alsa-devel@alsa-project.org sound/soc/codecs/cx2092x-i2c.c:43: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: Simon Ho Signed-off-by: Fengguang Wu --- cx2092x-i2c.c | 1 - 1 file changed, 1 deletion(-) --- a/sound/soc/codecs/cx2092x-i2c.c +++ b/sound/soc/codecs/cx2092x-i2c.c @@ -40,7 +40,6 @@ MODULE_DEVICE_TABLE(i2c, cx2092x_i2c_id) static struct i2c_driver cx2092x_i2c_driver = { .driver = { .name = "cx2092x", - .owner = THIS_MODULE, .of_match_table = of_match_ptr(cx2092x_dt_ids), }, .id_table = cx2092x_i2c_id,