Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756492AbcKWSPc (ORCPT ); Wed, 23 Nov 2016 13:15:32 -0500 Received: from mga03.intel.com ([134.134.136.65]:12063 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751168AbcKWSP3 (ORCPT ); Wed, 23 Nov 2016 13:15:29 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,539,1473145200"; d="scan'208";a="904831463" Date: Thu, 24 Nov 2016 02:13:44 +0800 From: kbuild test robot To: Ryan Lee Cc: kbuild-all@01.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, perex@perex.cz, tiwai@suse.com, arnd@arndb.de, michael@amarulasolutions.com, oder_chiou@realtek.com, yesanishhere@gmail.com, jacob@teenage.engineering, Damien.Horsley@imgtec.com, bardliao@realtek.com, kuninori.morimoto.gx@renesas.com, petr@barix.com, lars@metafoo.de, nh6z@nh6z.net, ryans.lee@maximintegrated.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fix platform_no_drv_owner.cocci warnings Message-ID: <20161123181344.GA24123@lkp-wsm-ep2> References: <201611240218.Lg3buQ9j%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1479877026-5172-1-git-send-email-RyanS.Lee@maximintegrated.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 691 Lines: 23 sound/soc/codecs/max98927.c:941: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: Ryan Lee Signed-off-by: Fengguang Wu --- max98927.c | 1 - 1 file changed, 1 deletion(-) --- a/sound/soc/codecs/max98927.c +++ b/sound/soc/codecs/max98927.c @@ -938,7 +938,6 @@ MODULE_DEVICE_TABLE(of, max98927_of_matc static struct i2c_driver max98927_i2c_driver = { .driver = { .name = "max98927", - .owner = THIS_MODULE, .of_match_table = of_match_ptr(max98927_of_match), .pm = NULL, },