From mboxrd@z Thu Jan 1 00:00:00 1970 From: kbuild test robot Subject: [PATCH] ASoC: rt1305: fix platform_no_drv_owner.cocci warnings Date: Tue, 17 Apr 2018 03:41:24 +0800 Message-ID: <20180416194124.GA75306@lkp-hsx02> References: <201804170321.o4jkfmnc%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <201804170321.o4jkfmnc%fengguang.wu@intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Shuming Fan Cc: kbuild-all@01.org, alsa-devel@alsa-project.org, Mark Brown , Bard Liao , Oder Chiou , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org List-Id: alsa-devel@alsa-project.org From: Fengguang Wu sound/soc/codecs/rt1305.c:1174: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: 29bc643ddd7e ("ASoC: rt1305: Add RT1305/RT1306 amplifier driver") CC: Shuming Fan Signed-off-by: Fengguang Wu --- rt1305.c | 1 - 1 file changed, 1 deletion(-) --- a/sound/soc/codecs/rt1305.c +++ b/sound/soc/codecs/rt1305.c @@ -1171,7 +1171,6 @@ static void rt1305_i2c_shutdown(struct i static struct i2c_driver rt1305_i2c_driver = { .driver = { .name = "rt1305", - .owner = THIS_MODULE, #if defined(CONFIG_OF) .of_match_table = rt1305_of_match, #endif